import type React from "react"; import type { ClassName } from "@reshaped/utilities"; import type { LinkProps } from "../../components/Link"; import type { Attributes } from "../../types/global"; export type Props = { /** Node for inserting children to position items */ children: React.ReactElement | React.ReactElement[]; /** Node for defining custom separator between items */ separator?: React.ReactNode; /** Component color scheme * @default "neutral" */ color?: "neutral" | "primary"; /** Number of items to show by default, others will be hidden and can be expanded */ defaultVisibleItems?: number; /** Aria label for the expand button */ expandAriaLabel: string; /** Turn expand button into static text and disable the expand functionality */ disableExpand?: boolean; /** aria-label attribute for the component */ ariaLabel?: string; /** Additional classname for the root element */ className?: ClassName; /** Additional attributes for the root element */ attributes?: Attributes<"nav">; }; export type ItemProps = Pick;