Skip to content

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 ​

PropertyAttributeTypeDefaultDescription
openopenbooleanfalseWhether the drawer is open.
anchoranchor'left' | 'right' | 'top' | 'bottom''left'Side from which the drawer slides in.
variantvariant'temporary' | 'persistent' | 'mini''temporary'Drawer behavior mode.
edgeedgebooleanfalseWhether the drawer uses edge spacing.
containercontainerbooleanfalseWhether the drawer is contained within its parent.
labellabelstring'Drawer'Accessible label for the drawer panel (used as aria-label on the panel).

Events ​

EventDetailDescription
flint-drawer-close—Dispatched when the drawer requests to be closed (backdrop click or Escape).

Slots ​

NameDescription
(default)Drawer content.

CSS Custom Properties ​

PropertyDefault
--flint-drawer-z-index1200
--flint-drawer-bgvar(--flint-surface-1
--flint-drawer-width250px
--flint-drawer-shadow—
--flint-drawer-transition.225s cubic-bezier(0, 0, .2, 1
--flint-drawer-heightauto
--flint-drawer-mini-width72px
--flint-drawer-edge-width16px
--flint-backdrop-color—
--flint-border-color—