Skip to content

Navigation hook in react-aria using Disclosure pattern #3817

@vbudovski

Description

@vbudovski

Is there any interest in a navigation component in react-aria utilising the disclosure pattern?

🙋 Feature Request

A navigation is a common component in web apps, and none of the existing hooks meet the specific requirement. useMenu might be the closest, but isn't quite right.

My proposed implementation would consist of 2 hooks: userNavigation and useNavigationItem and utilise TreeState from react-stately. Initial attempt at implementing https://codesandbox.io/s/cranky-field-u85oox

💻 Examples

https://www.w3.org/WAI/ARIA/apg/example-index/disclosure/disclosure-navigation.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions