4.2.0
CoreSheet

Sheet API

Every prop of the 10 parts Sheet exports, plus the 1 symbol it exports alongside them, generated from the package manifest.

import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger } from '@oceanic-hub/brand-system'
Layer
core — shadcn-derived primitives.
Exports
Sheet · SheetClose · SheetContent · SheetDescription · SheetFooter · SheetHeader · SheetOverlay · SheetPortal · SheetTitle · SheetTriggeralso: sheetVariantstypes: SheetContentProps
Variants
  • side: top | bottom | left | right
Contract
packages/brand-system/src/components/sheet.contract.test-d.ts
Demos
4 on the Sheet page — rendered live, hydrated
Source
packages/brand-system/src/components/sheet.tsx

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

Sheet

Re-exported from @radix-ui/react-dialog. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

SheetClose

Re-exported from @radix-ui/react-dialog. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

SheetContent

SheetContentProps

Prop

Type

Also inherited from @radix-ui/react-dialog — forwarded, not declared here, and accepted alongside the props above. DOM attributes are accepted too and omitted here.

Prop

Type

SheetDescription

Inherited from @radix-ui/react-dialog — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

SheetFooter

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

SheetHeader

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

SheetOverlay

Inherited from @radix-ui/react-dialog — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

SheetPortal

Re-exported from @radix-ui/react-dialog. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

SheetTitle

Inherited from @radix-ui/react-dialog — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

SheetTrigger

Re-exported from @radix-ui/react-dialog. These are its props — this package adds none of its own. DOM attributes are accepted too and omitted here.

Prop

Type

sheetVariants

A cva class builder. It returns the class string for a set of variants, so a foreign element can wear this component's surface — a link styled as a button, an AlertDialogAction styled as a destructive one. An advanced move: reach for the component first.

(props?: ({ side?: "top" | "right" | "bottom" | "left" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined): string

Parameters

Prop

Type

Variant axes

Read off the component's own cva config, so this table and the parts that consume it cannot disagree.

Prop

Type

On this page