Sheet
functionSource L10Open-code aq-ui accessible component family for Sheet.
function Sheet({ ...props }: SheetPrimitive.Root.Props)- Props type
SheetPrimitive.Root.Props
<Sheet />
Open-code aq-ui accessible component family for Sheet.
This is a live example. Interact with the available controls and use the keyboard to inspect the component's states and behavior.
pnpm dlx aq-ui@alpha add sheetImport the parts you need, then jump to an export for its contract.
"use client"
import { Sheet } from "@/components/ui/sheet"
<Sheet />Open-code aq-ui accessible component family for Sheet.
function Sheet({ ...props }: SheetPrimitive.Root.Props)SheetPrimitive.Root.PropsClose export for composing Sheet.
const SheetClose = React.forwardRef<React.ComponentRef<typeof SheetPrimitive.Close>, SheetPrimitive.Close.Props>(…)SheetPrimitive.Close.PropsContent export for composing Sheet.
const SheetContent = React.forwardRef<React.ComponentRef<typeof SheetPrimitive.Popup>, SheetPrimitive.Popup.Props & { side?: "top" | "right" | "bottom" | "left" showCloseButton?: boolean }>(…)SheetPrimitive.Popup.Props & { side?: "top" | "right" | "bottom" | "left" showCloseButton?: boolean }| Name | Type | Default |
|---|---|---|
side? | "top" | "right" | "bottom" | "left" | "right" |
showCloseButton? | boolean | true |
Description export for composing Sheet.
const SheetDescription = React.forwardRef<React.ComponentRef<typeof SheetPrimitive.Description>, SheetPrimitive.Description.Props>(…)SheetPrimitive.Description.PropsFooter export for composing Sheet.
const SheetFooter = React.forwardRef<React.ComponentRef<"div">, React.ComponentProps<"div">>(…)React.ComponentProps<"div">Header export for composing Sheet.
const SheetHeader = React.forwardRef<React.ComponentRef<"div">, React.ComponentProps<"div">>(…)React.ComponentProps<"div">Title export for composing Sheet.
const SheetTitle = React.forwardRef<React.ComponentRef<typeof SheetPrimitive.Title>, SheetPrimitive.Title.Props>(…)SheetPrimitive.Title.PropsTrigger export for composing Sheet.
const SheetTrigger = React.forwardRef<HTMLButtonElement, SheetPrimitive.Trigger.Props>(…)SheetPrimitive.Trigger.Propsbutton, utils
@base-ui/react@^1.7.0, lucide-react@^1.31.0