@wix/design-system
Version:
@wix/design-system
38 lines (35 loc) • 1.37 kB
Markdown
### dataHook
- type: string
- description: Applies a data-hook HTML attribute that can be used in the tests
### className
- type: string
- description: Specifies a CSS class name to be appended to the component’s root element.
- internal
### mainLabel
- type: string
- description: Sets the main label of an option. This label is a primary part that is matched to a search term or keyword.
### secondaryLabel
- type: string
- description: Sets the additional information of an address. Usually contains a region or a country.
### optionLayout
- type: "single-line" | "double-line"
- description: Sets the layout of mainLabel and secondaryLabel. Labels can be either side by side or stacked vertically.
- default: 'single-line'
### prefix
- type: ReactNode
- description: Pass a component you want to show as the prefix of the input, e.g., text, icon.
### suffix
- type: ReactNode
- description: Pass a component you want to show as the suffix of the input, e.g., text, icon, button.
### selected
- type: boolean
- description: Specifies whether the option is selected.
### highlighted
- type: boolean
- description: Specifies whether option is highlighted
### disabled
- type: boolean
- description: Specifies whether option is disabled
### onClick
- type: MouseEventHandler
- description: Defines a callback function which is called every time option is clicked