UNPKG

@wix/design-system

Version:

@wix/design-system

34 lines (31 loc) 1.14 kB
### dataHook - type: string - description: Applies a data-hook HTML attribute that can be used in the tests ### defaultSelected - type: ReactNode - description: Specifies the initially selected option ### selected - type: ReactNode - description: Specifies whether an option is selected ### size - type: "tiny" | "small" | "medium" - description: Controls the size of the segmented toggle - default: 'medium' ### onClick - type: (event: SyntheticEvent<Element, Event>, value: string) => void - description: Defines a callback function which is called every time option is clicked. Returns a selected element and its value. ### disabled - type: boolean - description: Specifies whether interactions are disabled. ### children - type: any[] - description: Accepts <SegmentedToggle.Icon/> or <SegmentedToggle.Button/> as child items to list down available options ### ariaLabel - type: string - description: Accessible label for the segmented toggle group ### ariaLabelledby - type: string - description: ID of element that labels the segmented toggle group ### fullWidth - type: boolean - description: Makes the container take up entire width