{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "adminlte-input-group", "title": "AdminLTE Input Group", "description": "Input group with addon text, icons, or buttons before/after the input field.", "registryDependencies": [ "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-theme.json" ], "files": [ { "path": "registry/new-york/adminlte-input-group/ui/adminlte-input-group.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/registry/new-york/adminlte-theme/lib/cn\"\n\ninterface AdminLTEInputGroupProps\n extends React.HTMLAttributes {\n size?: \"sm\" | \"md\" | \"lg\"\n addonBefore?: React.ReactNode\n addonAfter?: React.ReactNode\n buttonBefore?: React.ReactNode\n buttonAfter?: React.ReactNode\n}\n\nconst AdminLTEInputGroup = React.forwardRef<\n HTMLDivElement,\n AdminLTEInputGroupProps\n>(\n (\n {\n className,\n size = \"md\",\n addonBefore,\n addonAfter,\n buttonBefore,\n buttonAfter,\n children,\n ...props\n },\n ref\n ) => {\n const sizeClass = {\n sm: \"text-[12px]\",\n md: \"text-[14px]\",\n lg: \"text-[18px]\",\n }[size]\n\n const addonClass =\n \"inline-flex items-center px-[12px] py-[6px] text-[14px] font-normal leading-[1] text-[#555] text-center bg-[#eee] border border-solid border-[#ccc] rounded-[3px] whitespace-nowrap\"\n\n return (\n \n {addonBefore && (\n \n {addonBefore}\n \n )}\n {buttonBefore && (\n *]:rounded-r-none\">\n {buttonBefore}\n \n )}\n
input]:rounded-none [&>input:first-child]:rounded-l-[3px] [&>input:last-child]:rounded-r-[3px]\">\n {children}\n
\n {addonAfter && (\n \n {addonAfter}\n \n )}\n {buttonAfter && (\n *]:rounded-l-none\">\n {buttonAfter}\n \n )}\n \n )\n }\n)\nAdminLTEInputGroup.displayName = \"AdminLTEInputGroup\"\n\nexport { AdminLTEInputGroup }\nexport type { AdminLTEInputGroupProps }\n", "type": "registry:ui" } ], "type": "registry:ui" }