Sheet
agentmesh/sheet-exampleFreeExample
shadcn/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/sheet-example.jsonSource
1import {2 Example,3 ExampleWrapper,4} from "@/registry/base-vega/components/example"5import { Button } from "@/registry/base-vega/ui/button"6import { Field, FieldGroup, FieldLabel } from "@/registry/base-vega/ui/field"7import { Input } from "@/registry/base-vega/ui/input"8import {9 Sheet,10 SheetClose,11 SheetContent,12 SheetDescription,13 SheetFooter,14 SheetHeader,15 SheetTitle,16 SheetTrigger,17} from "@/registry/base-vega/ui/sheet"1819export default function SheetExample() {20 return (21 <ExampleWrapper>22 <SheetWithForm />23 <SheetNoCloseButton />24 <SheetWithSides />25 </ExampleWrapper>26 )27}2829function SheetWithForm() {30 return (31 <Example title="With Form">32 <Sheet>33 <SheetTrigger render={<Button variant="outline" />}>Open</SheetTrigger>34 <SheetContent>35 <SheetHeader>36 <SheetTitle>Edit profile</SheetTitle>37 <SheetDescription>38 Make changes to your profile here. Click save when you're39 done.40 </SheetDescription>41 </SheetHeader>42 <div className="style-vega:px-4 style-nova:px-4 style-lyra:px-4 style-maia:px-6 style-mira:px-6 style-luma:px-6">43 <FieldGroup>44 <Field>45 <FieldLabel htmlFor="sheet-demo-name">Name</FieldLabel>46 <Input id="sheet-demo-name" defaultValue="Pedro Duarte" />47 </Field>48 <Field>49 <FieldLabel htmlFor="sheet-demo-username">Username</FieldLabel>50 <Input id="sheet-demo-username" defaultValue="@peduarte" />51 </Field>52 </FieldGroup>53 </div>54 <SheetFooter>55 <Button type="submit">Save changes</Button>56 <SheetClose render={<Button variant="outline" />}>Close</SheetClose>57 </SheetFooter>58 </SheetContent>59 </Sheet>60 </Example>61 )62}6364function SheetNoCloseButton() {65 return (66 <Example title="No Close Button">67 <Sheet>68 <SheetTrigger render={<Button variant="outline" />}>69 No Close Button70 </SheetTrigger>71 <SheetContent showCloseButton={false}>72 <SheetHeader>73 <SheetTitle>No Close Button</SheetTitle>74 <SheetDescription>75 This sheet doesn't have a close button in the top-right76 corner. You can only close it using the button below.77 </SheetDescription>78 </SheetHeader>79 </SheetContent>80// … truncated
What it pulls in
Other registry items
Files it writes
More from shadcn/ui
All 201 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion-example | shadcn/ui | Examples | Free | no deps | |
| Alert Dialogalert-dialog-example | shadcn/ui | Examples | Free | no deps | |
| Alertalert-example | shadcn/ui | Examples | Free | no deps | |
| Aspect Ratioaspect-ratio-example | shadcn/ui | Examples | Free | no deps | |
| Avataravatar-example | shadcn/ui | Examples | Free | no deps | |
| Badgebadge-example | shadcn/ui | Examples | Free | no deps | |
| Breadcrumbbreadcrumb-example | shadcn/ui | Examples | Free | no deps | |
| Buttonbutton-example | shadcn/ui | Examples | Free | no deps |
