cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

Add a dropdown prop to Button which toggles a Dropdown when the button is clicked

Open nkohari opened this issue 6 years ago • 0 comments

Depends on #702.

We should add a dropdown prop to Button. When present, clicking the button will toggle the display of the specified Dropdown.

Here's an example API:

const dropdown = (
  <Dropdown>
    <Dropdown.Option ...>...</Dropdown.Option>
    ...
  </Dropdown>
)

return <Button dropdown={dropdown} />

nkohari avatar Jul 19 '18 14:07 nkohari