UNPKG

wix-style-react

Version:
20 lines (13 loc) 797 B
# Dropdown component > Dropdown Select Component ## Properties > See API tab. > API tab may not be complete. Props should include all props of `InputWithOptions`, which includes all props of `Input` and `DropdownLayout`. ## Option (an item in the `options` prop) | propName | propType | defaultValue | isRequired | description | |----------|----------|--------------|------------|-------------| | id | string or number | - | + | The id of the option, should be unique | | value | string or node | - | + | Can be a text or a react elements, if text is '-', a divider will render at that position. | | disabled | bool | false | - | Whether this option is disabled or not | ## Migration See [Migration docs](https://github.com/wix/wix-style-react/blob/master/src/Dropdown/README.MIGRATION.md).