The Switch component allows the display of one element out of a list of several elements. Users can cycle through the different children of the Switch tag by clicking on the currently displayed one.
<Switch> <span>Option 1</span> <span>Option 2</span> </Switch>
- onChange: Callback
functioninvoked when elements are switched. Receives as its first argument
posthe index of the currently displayed child. Default: