{"id":23530989,"url":"https://github.com/react-declarative/react-declarative-shadcn","last_synced_at":"2026-04-08T21:31:07.509Z","repository":{"id":269445225,"uuid":"890387717","full_name":"react-declarative/react-declarative-shadcn","owner":"react-declarative","description":"The shadcn ui kit bindings for react-declarative. Accessible. Customizable. Open Source. Declarative 🎉","archived":false,"fork":false,"pushed_at":"2024-12-24T15:38:55.000Z","size":1715,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T04:58:46.636Z","etag":null,"topics":["components","declarative","declarative-programming","declarative-ui","json-schema","jsonforms","nextjs","radix-ui","react","tailwindcss","ui"],"latest_commit_sha":null,"homepage":"https://github.com/react-declarative/react-declarative","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-declarative.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-18T13:37:46.000Z","updated_at":"2024-12-24T15:38:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"181e1437-6bfa-47ad-a404-b1844a672ad9","html_url":"https://github.com/react-declarative/react-declarative-shadcn","commit_stats":null,"previous_names":["react-declarative/react-declarative-shadcn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/react-declarative/react-declarative-shadcn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Freact-declarative-shadcn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Freact-declarative-shadcn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Freact-declarative-shadcn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Freact-declarative-shadcn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-declarative","download_url":"https://codeload.github.com/react-declarative/react-declarative-shadcn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-declarative%2Freact-declarative-shadcn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31575359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["components","declarative","declarative-programming","declarative-ui","json-schema","jsonforms","nextjs","radix-ui","react","tailwindcss","ui"],"created_at":"2024-12-25T22:11:52.026Z","updated_at":"2026-04-08T21:31:07.503Z","avatar_url":"https://github.com/react-declarative.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚛️ react-declarative-shadcn\n\n\u003e The [shadcn ui kit](https://ui.shadcn.com/) bindings for [react-declarative](https://github.com/react-declarative/react-declarative/) \n\n![screencast](./screencast.gif)\n\n## Getting started\n\n```bash\nnpm install\nnpm start\n```\n\n## Code sample\n\n```tsx\nimport { FieldType, One, TypedField } from \"react-declarative\";\nimport { FormGroup } from \"@/components/ui/form\";\nimport { Button } from \"@/components/ui/button\";\n\nconst frameworks = [\n  {\n    value: \"next.js\",\n    label: \"Next.js\",\n  },\n  {\n    value: \"sveltekit\",\n    label: \"SvelteKit\",\n  },\n  {\n    value: \"nuxt.js\",\n    label: \"Nuxt.js\",\n  },\n  {\n    value: \"remix\",\n    label: \"Remix\",\n  },\n  {\n    value: \"astro\",\n    label: \"Astro\",\n  },\n];\n\nconst fields: TypedField[] = [\n  {\n    type: FieldType.Typography,\n    typoVariant: \"h4\",\n    placeholder: \"Base information\",\n  },\n  {\n    type: FieldType.Outline,\n    fieldBottomMargin: \"1\",\n    fields: [\n      {\n        type: FieldType.Typography,\n        typoVariant: \"h6\",\n        placeholder: \"Profile Information\",\n      },\n      {\n        type: FieldType.Text,\n        validation: { required: true },\n        name: \"email\",\n        title: \"Email\",\n        placeholder: \"tripolskypetr@gmail.com\",\n        description: \"This will not be shared\",\n        desktopColumns: \"6\",\n        phoneColumns: \"12\",\n      },\n      {\n        type: FieldType.Text,\n        validation: { required: true },\n        name: \"password\",\n        title: \"Password\",\n        placeholder: \"Password\",\n        description: \"Use a secure password\",\n        desktopColumns: \"6\",\n        phoneColumns: \"12\",\n      },\n      {\n        type: FieldType.Text,\n        inputRows: 3,\n        validation: { required: true },\n        name: \"bio\",\n        title: \"Tell me about yourself\",\n        placeholder: \"I am ...\",\n        description: \"This will be used by AI\",\n        desktopColumns: \"12\",\n      },\n    ],\n  },\n  {\n    type: FieldType.Typography,\n    typoVariant: \"h4\",\n    placeholder: \"Other preferences\",\n  },\n  {\n    type: FieldType.Outline,\n    fieldBottomMargin: \"1\",\n    fields: [\n      {\n        type: FieldType.Typography,\n        typoVariant: \"h6\",\n        placeholder: \"Account Settings\",\n      },\n      {\n        type: FieldType.Component,\n        style: { width: \"100%\", marginBottom: \"1rem\" },\n        element: () =\u003e (\n          \u003cFormGroup\n            label=\"Account Type\"\n            description=\"Select your account type.\"\n          /\u003e\n        ),\n      },\n      {\n        type: FieldType.Box,\n        style: { width: \"100%\" },\n        fields: [\n          {\n            type: FieldType.Radio,\n            radioValue: \"staff\",\n            title: \"Staff\",\n            name: \"account\",\n          },\n          {\n            type: FieldType.Radio,\n            radioValue: \"admin\",\n            title: \"Admin\",\n            name: \"account\",\n          },\n          {\n            type: FieldType.Radio,\n            radioValue: \"owner\",\n            title: \"Owner\",\n            name: \"account\",\n          },\n        ],\n      },\n      {\n        type: FieldType.Combo,\n        name: \"framework\",\n        title: \"Favorite Framework\",\n        placeholder: \"Select framework\",\n        description: \"More important than your skills\",\n        itemList: frameworks.map(({ value }) =\u003e value),\n        tr: (value) =\u003e\n          frameworks.find((f) =\u003e f.value === value)?.label || value,\n        desktopColumns: \"12\",\n      },\n    ],\n  },\n  {\n    type: FieldType.Typography,\n    typoVariant: \"h4\",\n    placeholder: \"Notifications\",\n  },\n  {\n    type: FieldType.Outline,\n    fieldBottomMargin: \"1\",\n    fields: [\n      {\n        type: FieldType.Typography,\n        typoVariant: \"h6\",\n        placeholder: \"Preferences\",\n      },\n      {\n        type: FieldType.Switch,\n        title: \"Enable notifications\",\n        name: \"notify\",\n      },\n    ],\n  },\n  {\n    type: FieldType.Typography,\n    typoVariant: \"h4\",\n    placeholder: \"Finish\",\n  },\n  {\n    type: FieldType.Outline,\n    fieldBottomMargin: \"1\",\n    fields: [\n      {\n        type: FieldType.Checkbox,\n        title: \"Accept terms \u0026 conditions\",\n        name: \"agree\",\n      },\n      {\n        type: FieldType.Button,\n        fieldRightMargin: \"0\",\n        title: \"Submit\",\n      },\n      {\n        type: FieldType.Component,\n        element: () =\u003e (\n            \u003cButton variant=\"destructive\"\u003eClear\u003c/Button\u003e\n        )\n      }\n    ],\n  },\n];\n\nexport default function MainPage() {\n  return \u003cOne fields={fields} sx={{ p: 1 }} /\u003e;\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-declarative%2Freact-declarative-shadcn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-declarative%2Freact-declarative-shadcn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-declarative%2Freact-declarative-shadcn/lists"}