Trails Packages
    Preparing search index...
    • Declares a new menu item using the given props.

      Parameters

      • props: RovingMenuItemProps & { required?: true }

        Properties support when creating a new menu item via useRovingMenuItem.

        • Optionaldisabled?: boolean

          Set this to true if your item is disabled.

          This tells the menu that the item cannot be focused.

        • Optionalrequired?: 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).

        • Optionalrequired?: true

      Returns RovingMenuItemResult

    • Declares a new menu item using the given props.

      Parameters

      • props: RovingMenuItemProps

        Properties support when creating a new menu item via useRovingMenuItem.

        • Optionaldisabled?: boolean

          Set this to true if your item is disabled.

          This tells the menu that the item cannot be focused.

        • Optionalrequired?: 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).

      Returns RovingMenuItemResult | undefined