Mobile bootstrap offcanvas navbar
Use when building or fixing mobile-first navbar collapse, offcanvas drawers, ARIA-expanded sync, overflow handling, and Bootstrap-like responsive navigation.From its SKILL.md
npx -y skills add mhrsdev/AI-Agent-Skills-Library --skill mobile-bootstrap-offcanvas-navbarAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.4 KB, 231 tokens by cl100k_base, as published. Nobody here has run it
Mobile Bootstrap Offcanvas Navbar
Use this skill for mobile-first navbars, collapse panels, and offcanvas drawers inspired by twbs/bootstrap.
Primary source:
Focus areas:
- Navbar collapse state.
- Offcanvas drawer layout and transitions.
aria-expandedand collapsed class synchronization.- Mobile menu overflow when the menu is taller than the viewport.
- Modal/offcanvas scroll behavior on iOS.
Checklist:
- Toggle with a real
button. - Keep
aria-expanded, hidden state, and visual class state aligned. - Make long collapsed menus scrollable with
max-heightandoverflow-y: auto. - Use fixed positioning for offcanvas panels and a separate backdrop layer.
- Lock background scroll when offcanvas is modal.
- Test with many menu items, landscape mobile, and small 320px screens.
Common fixes:
- If an expanded navbar cannot scroll on mobile, constrain its height and enable vertical overflow.
- If the body scrolls behind offcanvas, add modal-style scroll lock.
- If state desynchronizes after resizing, reset mobile collapse state at desktop breakpoints.
What ships with it: 1 file
2.4 KB alongside SKILL.md
- README.md2.4 KB