{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "select",
  "type": "registry:component",
  "title": "Select & MultiSelect",
  "description": "Pick one or pick many from a taped paper sheet. The trigger has the fields' wobbly marker outline and boils while open, picks get a tick that draws itself in, and in a MultiSelect every pick sticks onto the trigger as washi tape. Add a search box for long lists, like a people picker.",
  "categories": [
    "inputs"
  ],
  "dependencies": [
    "@plop-ui/react",
    "@plop-ui/fonts"
  ],
  "registryDependencies": [
    "https://plopui.com/r/plop-setup.json"
  ],
  "files": [
    {
      "path": "registry/plopui/select-example.tsx",
      "type": "registry:component",
      "target": "components/plop/select-example.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { MultiSelect, Select, type SelectOption } from \"@plop-ui/react\";\n\nconst friends: SelectOption[] = [\n  { value: \"rosa\", label: \"Rosa Santos\", hint: \"Illustrator\", group: \"Online\", lead: { avatar: \"Rosa Santos\", status: \"online\" } },\n  { value: \"theo\", label: \"Theo Park\", hint: \"Letterer\", group: \"Online\", lead: { avatar: \"Theo Park\", status: \"online\" } },\n  { value: \"mia\", label: \"Mia Lopez\", hint: \"Zine maker\", group: \"Away\", lead: { avatar: \"Mia Lopez\", status: \"offline\" } },\n];\n\nconst tags: SelectOption[] = [\n  { value: \"wild\", label: \"Wild idea\", tone: \"tomato\" },\n  { value: \"draft\", label: \"Draft\", tone: \"mustard\" },\n  { value: \"shipped\", label: \"Shipped\", tone: \"mint\" },\n];\n\n/** Select & MultiSelect: a picker with hints, a searchable people picker, and tags that become tape. */\nexport function SelectExample() {\n  const [brush, setBrush] = useState(\"pencil\");\n  const [picked, setPicked] = useState<string[]>([\"wild\"]);\n  return (\n    <>\n      <Select\n        label=\"Brush\"\n        options={[\n          { value: \"pencil\", label: \"Pencil\", hint: \"Light and scratchy\", lead: { dot: \"periwinkle\" } },\n          { value: \"marker\", label: \"Marker\", hint: \"Bold and a bit wobbly\", lead: { dot: \"mustard\" } },\n        ]}\n        value={brush}\n        onValueChange={setBrush}\n      />\n\n      {/* A people picker: searchable, grouped, with doodle faces. */}\n      <Select label=\"Collaborator\" searchable searchLabel=\"Find a friend\" options={friends} />\n\n      {/* Each pick becomes a strip of tape. */}\n      <MultiSelect label=\"Tags\" options={tags} value={picked} onValueChange={setPicked} />\n\n      <Select label=\"Paper\" options={[{ value: \"kraft\", label: \"Kraft\" }]} error=\"Pick a paper before you post.\" />\n      <Select label=\"Loading\" options={[]} loading />\n    </>\n  );\n}\n"
    }
  ],
  "docs": "Example: components/plop/select-example.tsx. Docs: https://plopui.com/docs/components/select"
}
