Skip to content

Instantly share code, notes, and snippets.

@yesoreyeram
Last active May 14, 2025 02:39
Show Gist options
  • Save yesoreyeram/9b92dbb7d4228b73bc597a894f72a8ae to your computer and use it in GitHub Desktop.
Save yesoreyeram/9b92dbb7d4228b73bc597a894f72a8ae to your computer and use it in GitHub Desktop.
shadcn ui components sample
{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "hello",
"type": "registry:component",
"title": "Hello",
"description": "A simple hello component",
"files": [
{
"path": "src/components/hello/hello.tsx",
"content": "// prettier-ignore\n\nimport React from \"react\";\n\ntype HelloProps = (props: React.PropsWithChildren<{ message: string }>) => React.ReactElement;\n\nexport const Hello: HelloProps = (props) => {\n const { message } = props;\n const emoji = \"👋\";\n return (\n <div className=\"flex\">\n Hello.. {emoji} {message}\n </div>\n );\n};\n",
"type": "registry:component"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment