{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "drawer6",
  "title": "Drawer",
  "description": "Drawer built with shadcn/ui.",
  "dependencies": [
    "lucide-react@0"
  ],
  "registryDependencies": [
    "avatar",
    "button",
    "calendar",
    "drawer",
    "input",
    "label",
    "popover",
    "select"
  ],
  "files": [
    {
      "path": "contents/components/drawer/6/index.tsx",
      "content": "\"use client\";\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\nimport { Button } from \"@/components/ui/button\";\nimport { Calendar } from \"@/components/ui/calendar\";\nimport {\n  Drawer,\n  DrawerClose,\n  DrawerContent,\n  DrawerDescription,\n  DrawerFooter,\n  DrawerHeader,\n  DrawerTitle,\n  DrawerTrigger,\n} from \"@/components/ui/drawer\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport {\n  Popover,\n  PopoverContent,\n  PopoverTrigger,\n} from \"@/components/ui/popover\";\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from \"@/components/ui/select\";\nimport { cn } from \"@/lib/utils\";\nimport { CalendarIcon } from \"lucide-react\";\nimport * as React from \"react\";\n\nconst users = [\n  {\n    id: \"1\",\n    name: \"Adam Smith\",\n    avatar: \"https://i.pravatar.cc/150?u=1\",\n    initials: \"AS\",\n  },\n  {\n    id: \"2\",\n    name: \"Ruth Johnson\",\n    avatar: \"https://i.pravatar.cc/150?u=2\",\n    initials: \"RJ\",\n  },\n  {\n    id: \"3\",\n    name: \"Taylor Davis\",\n    avatar: \"https://i.pravatar.cc/150?u=3\",\n    initials: \"TD\",\n  },\n  {\n    id: \"4\",\n    name: \"Emily Wilson\",\n    avatar: \"https://i.pravatar.cc/150?u=4\",\n    initials: \"EW\",\n  },\n];\n\nexport default function DrawerComponent() {\n  const [date, setDate] = React.useState<Date>();\n\n  return (\n    <Drawer direction=\"right\">\n      <DrawerTrigger asChild>\n        <Button variant=\"outline\">Add Task</Button>\n      </DrawerTrigger>\n      <DrawerContent>\n        <div className=\"mx-auto w-full max-w-sm\">\n          <DrawerHeader>\n            <DrawerTitle className=\"font-normal\">Add Task</DrawerTitle>\n            <DrawerDescription>\n              New tasks are added to the default category.\n            </DrawerDescription>\n          </DrawerHeader>\n          <div className=\"grid gap-4 p-4\">\n            <div className=\"grid gap-2\">\n              <Label htmlFor=\"name\">Task Name</Label>\n              <Input id=\"name\" placeholder=\"Enter task name here\" />\n            </div>\n            <div className=\"grid gap-2\">\n              <Label htmlFor=\"assignee\">Assignee</Label>\n              <Select>\n                <SelectTrigger className=\"w-full\">\n                  <SelectValue id=\"assignee\" placeholder=\"Select someone\" />\n                </SelectTrigger>\n                <SelectContent>\n                  {users.map((user) => (\n                    <SelectItem key={user.id} value={user.id}>\n                      <div className=\"flex items-center gap-2 text-muted-foreground\">\n                        <Avatar className=\"size-6\">\n                          <AvatarImage src={user.avatar} />\n                          <AvatarFallback>{user.initials}</AvatarFallback>\n                        </Avatar>\n                        <span className=\"text-foreground\">{user.name}</span>\n                      </div>\n                    </SelectItem>\n                  ))}\n                </SelectContent>\n              </Select>\n            </div>\n            <div className=\"grid gap-2\">\n              <Label htmlFor=\"date\">Due Date</Label>\n              <Popover>\n                <PopoverTrigger asChild>\n                  <Button\n                    variant={\"outline\"}\n                    className={cn(\n                      \"w-full justify-start text-left font-normal\",\n                      !date && \"text-muted-foreground\"\n                    )}\n                  >\n                    <CalendarIcon className=\"mr-2 h-4 w-4\" />\n                    {date ? date.toLocaleDateString() : <span>Pick a date</span>}\n                  </Button>\n                </PopoverTrigger>\n                <PopoverContent className=\"w-auto p-0\" align=\"start\">\n                  <Calendar\n                    mode=\"single\"\n                    selected={date}\n                    onSelect={setDate}\n                  />\n                </PopoverContent>\n              </Popover>\n            </div>\n          </div>\n          <DrawerFooter>\n            <Button type=\"submit\">Add</Button>\n            <DrawerClose asChild>\n              <Button type=\"button\" variant=\"outline\">\n                Cancel\n              </Button>\n            </DrawerClose>\n          </DrawerFooter>\n        </div>\n      </DrawerContent>\n    </Drawer>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/drawer6.tsx"
    }
  ],
  "type": "registry:component"
}