Trails Packages
    Preparing search index...

    Properties support when creating a new menu item via useRovingMenuItem.

    interface RovingMenuItemProps {
        disabled?: boolean;
        required?: boolean;
        value: string;
    }
    Index

    Properties

    disabled?: boolean

    Set this to true if your item is disabled.

    This tells the menu that the item cannot be focused.

    required?: boolean

    By default, a menu item parent is required.

    Set this to false to make the parent optional. The hook will become inactive and will return undefined if no parent is present. This is useful for components that may or may not be used within a menu.

    Default: true

    value: string

    A unique value for the current item (in the context of this menu).