ButtonOrDropdownButtonProps interface
The properties of the ButtonOrDropdownButton React component.
Signature:
export interface ButtonOrDropdownButtonProps<T extends string>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
children | React.ReactNode | The contents of the button - usually an icon. | |
items | { value: T; label: string | JSX.Element; }[] | The items to show in the dropdown. | |
onChoose | (value: T) => void | The function to execute when the button is clicked or an item is chosen from the dropdown. If there is only one item in the dropdown, the value will be an empty string. | |
title | string | The title used for the tooltip. |