mirror of
https://github.com/cosscom/coss.git
synced 2026-09-14 20:06:50 +08:00
16 lines
966 B
JSON
16 lines
966 B
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "frame-demo",
|
|
"type": "registry:example",
|
|
"description": "Frame example",
|
|
"registryDependencies": ["@coss/frame"],
|
|
"files": [
|
|
{
|
|
"path": "registry/default/examples/frame-demo.tsx",
|
|
"content": "import {\n Frame,\n FrameDescription,\n FrameHeader,\n FramePanel,\n FrameTitle,\n} from \"@/registry/default/ui/frame\"\n\nexport default function FrameDemo() {\n return (\n <Frame className=\"w-full\">\n <FrameHeader>\n <FrameTitle>Section header</FrameTitle>\n <FrameDescription>Brief description about the section</FrameDescription>\n </FrameHeader>\n <FramePanel>\n <h2 className=\"text-sm font-semibold\">Section title</h2>\n <p className=\"text-sm text-muted-foreground\">Section description</p>\n </FramePanel>\n </Frame>\n )\n}\n",
|
|
"type": "registry:example"
|
|
}
|
|
],
|
|
"categories": ["frame"]
|
|
}
|