Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New component: Sidebar #7047

Open
evansjohnson opened this issue Nov 5, 2024 · 1 comment
Open

New component: Sidebar #7047

evansjohnson opened this issue Nov 5, 2024 · 1 comment

Comments

@evansjohnson
Copy link
Contributor

Feature request

I'd like Blueprint to provide a reusable Sidebar component that is conditionally visible similar to a Drawer that will take care of accessibility related concerns. For now I imagine this includes:

  • setting appropriate html attributes
  • making it easy to move focus to the sidebar when opened if that should happen
  • making it easy to return focus to the opening element when sidebar is closed

The main difference from a Drawer would be that it should take up space instead of being an overlay. Perhaps there's a better name that is inclusive of top/down positioning.

The sidebar could also possibly support resizing.

Examples

TBD, may add screenshots if I see good examples in the wild

@nerdstep
Copy link
Contributor

nerdstep commented Nov 22, 2024

We implemented a custom component called AppShell, which supports an app layout with a header, sidebar, aside (right-hand sidebar), and footer, i.e. the holy grail layout. It's inspired by the Mantine component of the same name but using Blueprint.

image

It auto-collapses on small viewports:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants