Components
Every interactive component in forma-css works with zero JavaScript: <details> for disclosure patterns, the Popover API for overlays, radio inputs for tabs. The browser provides the behaviour, forma provides the styling.
One page per component
Each component has its own page with a description, variations, advantages and customization options:
- Accordion
- Card
- Dropdown (includes the burger menu)
- Modal
- Nav
- Off-canvas
- Tab-nav
- Toast
- Tooltip
All of them are optional: switch any of them off in the $modules map of _config.scss and its CSS is never generated.
How behaviour stays native
Disclosure components (accordion, dropdown and its burger-menu variant) are <details>/<summary> – open state, keyboard support and accessibility come from the platform. Overlay components (modal, toast, off-canvas) use the native Popover API: they land in the top layer, close with Esc and support light dismiss, all without a line of JavaScript. Tabs use the classic radio-input pattern with classless labels.