Skip to content
Overlays & Tooltips

Sheet

Side-anchored panel.

Import

tsx
import { Sheet } from "@cronus-ui/ui";
bash
npx cronus-ui add sheet

Examples

.cronus

The same component declared in Cronus. Emitted at build time from the audit fixtures — the kernel renders it as HTML with no React.

PortedParity: MatchGeometry 1/1Pixel diff 0 pxLogic 1/1Parity scoreboard
default.cronus
app "audit-fixtures" {
  port 5176
}

style {
  preset aurora
  theme dark
}

component SheetDefault layout:inline style:sheet {
  description:"Make changes to your profile here."
  label "Edit profile"
}

page "/audit/sheet/default" type:custom {
  use SheetDefault
}

API Reference

Generated from the component's exported types.

SheetContentProps

Extends ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants>

Skip SheetContentProps props table
PropTypeDefaultDescription
side
"top" | "right" | "bottom" | "left""right"—
labels
{ close?: string }—Override the built-in close button's accessible name. Defaults to `"Close"`.
asChild
boolean—Render as the child element via Slot.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

SheetProps

Extends ComponentProps<typeof SheetPrimitive.Root>

Skip SheetProps props table
PropTypeDefaultDescription
asChild
boolean—Render as the child element via Slot.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

SheetTriggerProps

Extends ComponentProps<typeof SheetPrimitive.Trigger>

Skip SheetTriggerProps props table
PropTypeDefaultDescription
asChild
boolean—Render as the child element via Slot.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

SheetCloseProps

Extends ComponentProps<typeof SheetPrimitive.Close>

Skip SheetCloseProps props table
PropTypeDefaultDescription
asChild
boolean—Render as the child element via Slot.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

SheetHeaderProps

Extends HTMLAttributes<HTMLDivElement>

Skip SheetHeaderProps props table
PropTypeDefaultDescription
className
string—Additional class names merged onto the root.
children
ReactNode—Contents of the component.
id
string—DOM id of the root element.

SheetFooterProps

Extends HTMLAttributes<HTMLDivElement>

Skip SheetFooterProps props table
PropTypeDefaultDescription
className
string—Additional class names merged onto the root.
children
ReactNode—Contents of the component.
id
string—DOM id of the root element.

SheetTitleProps

Extends ComponentPropsWithoutRef<typeof SheetPrimitive.Title>

Skip SheetTitleProps props table
PropTypeDefaultDescription
asChild
boolean—Render as the child element via Slot.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

SheetDescriptionProps

Extends ComponentPropsWithoutRef<typeof SheetPrimitive.Description>

Skip SheetDescriptionProps props table
PropTypeDefaultDescription
asChild
boolean—Render as the child element via Slot.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.