Appearance
Drawer ​
Left (default)
Loading...
Navigation drawers provide ergonomic access to destinations in a site or app.
- Tag:
<flint-drawer> - Class:
FlintDrawer
Import ​
ts
import 'flint-ui'; // auto-registers all
// or
import { FlintDrawer } from 'flint-ui';Usage ​
html
<flint-drawer></flint-drawer>Properties ​
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
open | open | boolean | false | Whether the drawer is open. |
anchor | anchor | 'left' | 'right' | 'top' | 'bottom' | 'left' | Side from which the drawer slides in. |
variant | variant | 'temporary' | 'persistent' | 'mini' | 'temporary' | Drawer behavior mode. |
edge | edge | boolean | false | Whether the drawer uses edge spacing. |
container | container | boolean | false | Whether the drawer is contained within its parent. |
label | label | string | 'Drawer' | Accessible label for the drawer panel (used as aria-label on the panel). |
Events ​
| Event | Detail | Description |
|---|---|---|
flint-drawer-close | — | Dispatched when the drawer requests to be closed (backdrop click or Escape). |
Slots ​
| Name | Description |
|---|---|
(default) | Drawer content. |
CSS Custom Properties ​
| Property | Default |
|---|---|
--flint-drawer-z-index | 1200 |
--flint-drawer-bg | var(--flint-surface-1 |
--flint-drawer-width | 250px |
--flint-drawer-shadow | — |
--flint-drawer-transition | .225s cubic-bezier(0, 0, .2, 1 |
--flint-drawer-height | auto |
--flint-drawer-mini-width | 72px |
--flint-drawer-edge-width | 16px |
--flint-backdrop-color | — |
--flint-border-color | — |