{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "input", "title": "Input", "description": "An input component with size variants.", "dependencies": [ "class-variance-authority" ], "files": [ { "path": "registry/default/ui/input.tsx", "content": "import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { cva, VariantProps } from 'class-variance-authority';\n\nconst inputVariants = cva(\n [\n 'file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-muted-lighter px-3 py-1 text-base transition-[color] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',\n 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]',\n 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',\n ],\n {\n variants: {\n size: {\n sm: 'h-7',\n md: 'h-8',\n lg: 'h-9',\n },\n font: {\n sans: '',\n mono: 'font-mono',\n },\n },\n defaultVariants: {\n size: 'md',\n font: 'sans',\n },\n }\n);\n\ntype InputProps = Omit, 'size'> &\n VariantProps;\n\nfunction Input({ className, size, font, type, ...props }: InputProps) {\n return (\n \n );\n}\n\nexport { Input };\n", "type": "registry:ui" } ], "type": "registry:ui" }