Overview
Implements a button with a dropdown set of options, based on Keen's UI Menu. See these docs to understand the current implementation of the options object array.
Note that this component may be deprecated in the future: #164
Props
Name | Description | Type | Default | Required |
---|---|---|---|---|
text | Button label text | string | — | true |
options | An array of options objects, with one object per dropdown item | array | — | true |
appearance | Button appearance: 'raised-button' or 'flat-button' | string |
'raised-button'
| — |
disabled | Whether or not the button is disabled | boolean |
false
| — |
position | The position of the dropdown relative to the button | string |
'bottom right'
| — |
Events
Name | Description |
---|---|
select | Emitted when an option is selected |