UNPKG

@wix/design-system

Version:

@wix/design-system

43 lines (40 loc) 1.36 kB
### dataHook - type: string - description: Applies a data-hook HTML attribute to be used in the tests ### labelPlacement - type: "tooltip" | "bottom" | "start" | "end" - description: Controls the items’ label placement - default: 'end' ### labelTooltipProps - type: TooltipCommonProps - description: Controls the items’ label tooltip when labelPlacement is set to tooltip ### size - type: string - description: Sets the size of the items - default: 'medium' ### width - type: string | number - description: Sets the width of the container ### className - type: string - description: Specifies a CSS class name to be appended to the component’s root element. - internal ### selectedId - type: string | number - description: Defines which item is currently selected - default: null ### items - type: ComposerSidebarItem[] - description: Defines an array of items (buttons and labels) to show on the sidebar: - `label`: text string next to a button - `icon`: icon shown in the toggle button - `disabled`: disables the item - `onClick`: defines what happens when the item is clicked on - `sectionTitle`: defines a section under which each item is placed ### onClick - type: MouseEventHandler - description: Defines a default on click handler for items ### ellipsis - type: boolean - description: Controls the ellipsis of the item label - default: true