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

504 B

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

  • 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.