{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "small-box", "title": "Small Box", "description": "Compact stat widget with colored background, large number, description text, icon, and footer link.", "registryDependencies": [ "https://raw.githubusercontent.com/dnachavez/adminlte-next/master/public/r/adminlte-theme.json" ], "files": [ { "path": "registry/new-york/small-box/components/small-box.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"@/registry/new-york/adminlte-theme/lib/cn\"\nimport {\n type AdminLTEColor,\n bgColorMap,\n} from \"@/registry/new-york/adminlte-theme/lib/colors\"\n\ninterface SmallBoxProps extends React.HTMLAttributes {\n color?: AdminLTEColor\n value?: string | number\n text?: string\n icon?: React.ReactNode\n footerText?: string\n footerIcon?: React.ReactNode\n href?: string\n onClick?: React.MouseEventHandler\n}\n\nconst SmallBox = React.forwardRef(\n (\n {\n className,\n color = \"aqua\",\n value,\n text,\n icon,\n footerText,\n footerIcon,\n href,\n onClick,\n ...props\n },\n ref\n ) => {\n return (\n \n {/* Inner content */}\n
\n

\n {value}\n

\n

{text}

\n
\n\n {/* Icon */}\n {icon && (\n
\n {icon}\n
\n )}\n\n {/* Footer link */}\n {(footerText || footerIcon) && (\n \n {footerText && {footerText}}\n {footerIcon && (\n {footerIcon}\n )}\n \n )}\n \n )\n }\n)\nSmallBox.displayName = \"SmallBox\"\n\nexport { SmallBox }\nexport type { SmallBoxProps }\n", "type": "registry:component" } ], "type": "registry:component" }