API reference: @salmonui/navigation/toolbar
ToolbarItemPropsinterface
import type { ToolbarItemProps } from '@salmonui/navigation/toolbar';interface ToolbarItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
readonly children?: ReactNode | ((size: ToolbarItemSize) => ReactNode);
readonly sizes?: readonly ToolbarItemSize[] | undefined;
readonly label?: string | undefined;
readonly icon?: ReactNode;
readonly overflow?: OverflowMode | undefined;
readonly overflowPriority?: number | undefined;
}
| Name | Signature | Description |
|---|---|---|
childrenoptional | readonly children?: ReactNode | ((size: ToolbarItemSize) => ReactNode); | Content, or a function of the item's current size ( |
sizesoptional | readonly sizes?: readonly ToolbarItemSize[] | undefined; | Sizes the item may take, largest first ( |
labeloptional | readonly label?: string | undefined; | Text of the item's overflow menu entry (default: the control's |
iconoptional | readonly icon?: ReactNode; | Icon of the item's overflow menu entry. |
overflowoptional | readonly overflow?: OverflowMode | undefined; |
|
overflowPriorityoptional | readonly overflowPriority?: number | undefined; | Higher stays longer (steps down and overflows later) when space runs out. Default 0. |