Interface ExhibitMenuItemProps

interface ExhibitMenuItemProps {
    chips?: string[] | ReactNode | ReactNode[];
    icon?: ReactNode | (() => ReactNode);
    parentFloat?: FloatReference;
    primary?: boolean;
    renderIcon?: ((props) => ReactElement<any, string | JSXElementConstructor<any>>);
    tooltipProps?: Omit<ExhibitTooltipProps, "children">;
}

Hierarchy

  • MenuItemProps
    • ExhibitMenuItemProps

Properties

chips?: string[] | ReactNode | ReactNode[]
icon?: ReactNode | (() => ReactNode)

Type declaration

    • (): ReactNode
    • Returns ReactNode

parentFloat?: FloatReference
primary?: boolean

If the icon button is a secondary text button. This will change the color of the text and icon

Default Value

false
renderIcon?: ((props) => ReactElement<any, string | JSXElementConstructor<any>>)

Type declaration

    • (props): ReactElement<any, string | JSXElementConstructor<any>>
    • Parameters

      Returns ReactElement<any, string | JSXElementConstructor<any>>

tooltipProps?: Omit<ExhibitTooltipProps, "children">

Tooltip properties. If this is specified then the tooltips are used. Do not provide a child as this component will be the child.