import { Nullable, OnyxColor } from '../../../../types/index.js'; import { WithLinkProp } from '../../../OnyxRouterLink/types.js'; export type OnyxMenuItemProps = WithLinkProp & { /** * If the children of the menu item are visible. */ open?: Nullable; /** * Label text for the menu item. */ label?: string; /** * Icon to be displayed next to the label. */ icon?: string; /** * Whether the item is currently active. * This is the case if the page of the given link is currently open. * If "auto" and a [router](https://onyx.schwarz/development/router.html) is provided, the active state will be determined automatically based on the current route. */ active?: boolean | "auto"; /** * Whether the menu item is disabled. */ disabled?: boolean; /** * Main color of the item content. */ color?: Extract; };