4.2.0
CoreDrawer

Drawer API

Every prop of the 10 parts Drawer exports, generated from the package manifest.

import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from '@oceanic-hub/brand-system'
Layer
core — shadcn-derived primitives.
Exports
Drawer · DrawerClose · DrawerContent · DrawerDescription · DrawerFooter · DrawerHeader · DrawerOverlay · DrawerPortal · DrawerTitle · DrawerTrigger
Contract
packages/brand-system/src/components/drawer.contract.test-d.ts
Demos
4 on the Drawer page — rendered live, hydrated
Source
packages/brand-system/src/components/drawer.tsx

Generated from manifest/component-manifest.json, so it cannot drift from the source. For what Drawer is for, how it composes and what it looks like, see Drawer.

Drawer

Inherited from vaul — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

DrawerClose

Re-exported from DrawerPrimitive. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

DrawerContent

Inherited from vaul — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

DrawerDescription

Inherited from vaul — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

DrawerFooter

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

DrawerHeader

A styled <div> with no API of its own. It takes that element's standard attributes — className, event handlers, ref — and nothing else.

DrawerOverlay

Inherited from vaul — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

DrawerPortal

Re-exported from DrawerPrimitive. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

DrawerTitle

Inherited from vaul — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

DrawerTrigger

Re-exported from DrawerPrimitive. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

On this page