woocommerce/plugins/woocommerce-admin/docs/components/packages/dropdown-button.md

28 lines
519 B
Markdown
Raw Normal View History

`DropdownButton` (component)
============================
A button useful for a launcher of a dropdown component. The button is 100% width of its container and displays
single or multiple lines rendered as `<span/>` elments.
@param { object } props Props passed to component.
Props
-----
### `labels`
- **Required**
- Type: Array
- Default: null
An array of elements to be rendered as the content of the button.
### `isOpen`
- Type: Boolean
- Default: null
Boolean describing if the dropdown in open or not.