@wix/design-system
Version:
@wix/design-system
46 lines (43 loc) • 1.44 kB
Markdown
### disabled
- type: boolean
- description: Indicates whether to display the item as disabled
### className
- type: string
- description: Specifies a CSS class name to be appended to the component’s root element.
- internal
### title
- type: string | ComponentClass<{}, any> | FunctionComponent<{}>
- description: An element to appear as the title of the submenu
### prefix
- type: ReactNode
- description: An element to appear at the start of the title
### children
- type: ReactNode
- description: No description
### onClick
- type: MouseEventHandler
- description: A callback to be triggered on click
### dataHook
- type: string
- description: Applied as data-hook HTML attribute that can be used in the tests
### itemKey
- type: string
- description: unique identifier per item, used to mark it for navigation and selection
### href
- type: string
- description: URL of the page that link goes to
### onExpand
- type: (trigger: ExpandCollapseTrigger) => void
- description: A callback to be triggered when the sub menu expands
### onCollapse
- type: (trigger: ExpandCollapseTrigger) => void
- description: A callback to be triggered when the sub menu collapses
### onQuickNavOpen
- type: () => void
- description: A callback to be triggered when the quick nav opens
### suffix
- type: ReactNode
- description: An element to appear at the end of the title
### as
- type: "button"
- description: render as some other component or DOM tag