mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
11 lines
774 B
JSON
11 lines
774 B
JSON
{
|
|
"name": "list",
|
|
"description": "Enhanced list component with sorting and filtering",
|
|
"files": [
|
|
{
|
|
"name": "list.tsx",
|
|
"content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst List = React.forwardRef<\n HTMLUListElement,\n React.HTMLAttributes<HTMLUListElement>\n>(({ className, ...props }, ref) => (\n <ul ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n))\nList.displayName = \"List\"\n\nconst ListItem = React.forwardRef<\n HTMLLIElement,\n React.HTMLAttributes<HTMLLIElement>\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"\", className)} {...props} />\n))\nListItem.displayName = \"ListItem\"\n\nexport { List, ListItem }\n"
|
|
}
|
|
],
|
|
"type": "components:ui"
|
|
} |