Sheet Example

How to use this sheet

Props

NameTypeDefaultDescription
asChildbooleanfalseChange the default rendered element for the one passed as a child, merging their props and behavior.
defaultCheckedboolean | "indeterminate"-The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.
checkedboolean | "indeterminate"-The controlled checked state of the checkbox. Must be used in conjunction with onCheckedChange.
onCheckedChange(checked: boolean | 'indeterminate') => void-Event handler called when the checked state of the checkbox changes.
disabledboolean-When true, prevents the user from interacting with the checkbox.
requiredboolean-When true, indicates that the user must check the checkbox before the owning form can be submitted.
namestring-The name of the checkbox. Submitted with its owning form as part of a name/value pair.
valuestring-The value given as data when submitted with a name.

Playground

Import from filigran-ui :

Import {Sheet, SheetTrigger,SheetContent, SheetHeader, SheetTitle, SheetDescription} from 'filigran-ui'


            <Sheet>
              <SheetTrigger>Open</SheetTrigger>
              <SheetContent>
                <SheetHeader>
                  <SheetTitle>Are you absolutely sure?</SheetTitle>
                  <SheetDescription>
                    This action cannot be undone.
                  </SheetDescription>
                </SheetHeader>
This is the content !
              </SheetContent>
            </Sheet>