Sheet

Extends the Dialog component to display content that complements the main content of the screen.

Installation

npx shadcn@latest add https://spoke.georgedrury.co.uk/r/sheet

Lineage

Anatomy

import {
	Sheet,
	SheetTrigger,
	SheetContent,
	SheetHeader,
	SheetTitle,
	SheetDescription,
} from "@/components/ui/sheet"

export default () => (
	<Sheet>
		<SheetTrigger />
		<SheetContent>
			<SheetHeader>
				<SheetTitle />
				<SheetDescription />
			</SheetHeader>
		</SheetContent>
	</Sheet>
)

Spoke utility classes

ClassFallback chainDescription
--sheet-overlayoklch(0 0 0 / 0.5)Colour for overlay sheet variant
--sheet-contentvar(--background)Colour for content sheet variant
--sheet-bordervar(--border)Border colour for sheet
--shadow-sheetvar(--shadow-lg)Box shadow for sheet