{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "color-emotion-select", "type": "registry:ui", "title": "Color Emotion Select", "description": "A select component that displays options with color indicators and optional emojis for emotional context.", "registryDependencies": [ "select" ], "files": [ { "path": "registry/ruixenui/color-emotion-select.tsx", "content": "\"use client\";\n\nimport * as React from \"react\";\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface ColorEmotionOption {\n value: string;\n label: string;\n color: string; // Tailwind color or hex\n emoji?: string; // Optional emoji for visual cue\n}\n\ninterface ColorEmotionSelectProps {\n options: ColorEmotionOption[];\n label?: string; // Optional label for the whole group\n placeholder?: string; // Placeholder text\n onChange?: (value: string) => void;\n defaultValue?: string;\n}\n\nexport const ColorEmotionSelect: React.FC = ({\n options,\n label,\n placeholder = \"Select...\",\n onChange,\n defaultValue,\n}) => {\n return (\n \n );\n};\n", "type": "registry:ui", "target": "components/ruixen/color-emotion-select.tsx" } ] }