Edit page
Home
Getting Started
Components
AlertAnimateHeightAvatarAvatarListBadgeButtonButtonMenuCalendarCalendarRangeCardCarouselChipClickOutsideContainerContentLoaderCurrencyDataTableDatePickerDateTimePickerDividerDrawerDropdownFloatingActionsGoogleMapGridIconIconDotIfInfiniteScrollKW LogoLoaderModalMonthPickerMonthRangeNavIconOptionsTogglePropsExamplesPaginationPartnerLogoResponsiveSVG IconSnackbarStaticMapStatusIndicatorTabTableTimePickerToastsTooltip
Forms
Typography
Utilities
Visualization Components

OptionsToggle

A component that displays a list of options that can be selected

Props

className
String
direction
'horizontal' │ 'vertical'
'horizontal'
onChange
Func
required
options
Array<{ "label": "number │ string │ node", "value": "number │ string" }>
required
value
number │ string
required

Examples

Default Usage

Referrals
2

Direction

Option 1
2