Sheet
agileflow-projectquestorg/sheet-exampleFreeExample
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/sheet-example.jsonSource
1import {2 Example,3 ExampleWrapper,4} from "@/registry/bases/radix/components/example"5import { Button } from "@/registry/bases/radix/ui/button"6import { Field, FieldGroup, FieldLabel } from "@/registry/bases/radix/ui/field"7import { Input } from "@/registry/bases/radix/ui/input"8import {9 Sheet,10 SheetClose,11 SheetContent,12 SheetDescription,13 SheetFooter,14 SheetHeader,15 SheetTitle,16 SheetTrigger,17} from "@/registry/bases/radix/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 asChild>34 <Button variant="outline">Open</Button>35 </SheetTrigger>36 <SheetContent>37 <SheetHeader>38 <SheetTitle>Edit profile</SheetTitle>39 <SheetDescription>40 Make changes to your profile here. Click save when you're41 done.42 </SheetDescription>43 </SheetHeader>44 <div className="style-vega:px-4 style-maia:px-6 style-mira:px-6 style-lyra:px-4 style-nova:px-4">45 <FieldGroup>46 <Field>47 <FieldLabel htmlFor="sheet-demo-name">Name</FieldLabel>48 <Input id="sheet-demo-name" defaultValue="Pedro Duarte" />49 </Field>50 <Field>51 <FieldLabel htmlFor="sheet-demo-username">Username</FieldLabel>52 <Input id="sheet-demo-username" defaultValue="@peduarte" />53 </Field>54 </FieldGroup>55 </div>56 <SheetFooter>57 <Button type="submit">Save changes</Button>58 <SheetClose asChild>59 <Button variant="outline">Close</Button>60 </SheetClose>61 </SheetFooter>62 </SheetContent>63 </Sheet>64 </Example>65 )66}6768function SheetNoCloseButton() {69 return (70 <Example title="No Close Button">71 <Sheet>72 <SheetTrigger asChild>73 <Button variant="outline">No Close Button</Button>74 </SheetTrigger>75 <SheetContent showCloseButton={false}>76 <SheetHeader>77 <SheetTitle>No Close Button</SheetTitle>78 <SheetDescription>79 This sheet doesn't have a close button in the top-right80 corner. You can only close it using the button below.81 </SheetDescription>82// … truncated
What it pulls in
Other registry items
Files it writes
More from shadcn/ui
All 133 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 |
