wix-style-react
Version:
wix-style-react
19 lines (12 loc) • 797 B
Markdown
# IconWithOptions component
> Icon with dropdown
**The `<IconWithOptions/>` component is deprecated in will be removed in a later version if the
library. Instead, we advise you to use the newer `<DropdownPopover/>` component which has a better
positioning mechanism and supports keyboard navigation.**
## Properties
| propName | propType | defaultValue | isRequired | description |
|----------|----------|--------------|------------|-------------|
| onSelect | func | noop | - | Callback when the user selects one of the selections. Called with the selection. |
| ***All of the DropdownLayout Props are also available for this component*** | | | | |
> IconWithOptions.Icon - the Icon component to be used
> IconWithOptions.Option - an option to be used for the dropdown - must contain an id