{"id":19204153,"url":"https://github.com/htmujahid/shadcn-editor","last_synced_at":"2025-05-15T23:07:58.937Z","repository":{"id":261015774,"uuid":"882993211","full_name":"htmujahid/shadcn-editor","owner":"htmujahid","description":"Lexical base rich text editor using shadcn/ui components","archived":false,"fork":false,"pushed_at":"2025-05-12T17:16:23.000Z","size":3645,"stargazers_count":604,"open_issues_count":14,"forks_count":44,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-12T18:29:17.833Z","etag":null,"topics":["editor","lexical","rich-text","rich-text-editor","shadcn","shadcn-editor","shadcn-lexical","wysiwyg"],"latest_commit_sha":null,"homepage":"https://shadcn-editor.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/htmujahid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04T07:28:06.000Z","updated_at":"2025-05-12T17:16:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"6fe1422f-e0de-4bcc-b9af-bd76b2ba7d08","html_url":"https://github.com/htmujahid/shadcn-editor","commit_stats":null,"previous_names":["htmujahid/shadcn-editor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmujahid%2Fshadcn-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmujahid%2Fshadcn-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmujahid%2Fshadcn-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htmujahid%2Fshadcn-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htmujahid","download_url":"https://codeload.github.com/htmujahid/shadcn-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436949,"owners_count":22070947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["editor","lexical","rich-text","rich-text-editor","shadcn","shadcn-editor","shadcn-lexical","wysiwyg"],"created_at":"2024-11-09T13:01:15.660Z","updated_at":"2025-05-15T23:07:53.214Z","avatar_url":"https://github.com/htmujahid.png","language":"TypeScript","funding_links":[],"categories":["Libs and Components","TypeScript","Components \u0026 Libraries"],"sub_categories":[],"readme":"# Shadcn Editor\n\n## Usage\n\n1. Run this command to setup batteries included editor.\n\n```bash\nnpx shadcn@latest add https://shadcn-editor.vercel.app/r/editor-x.json\n```\n\n2. Use the `Editor` component in your project.\n\n```tsx\n'use client'\n\nimport { useState } from 'react'\n\nimport { SerializedEditorState } from 'lexical'\n\nimport { Editor } from '@/components/blocks/editor-x/editor'\n\nconst initialValue = {\n  root: {\n    children: [\n      {\n        children: [\n          {\n            detail: 0,\n            format: 0,\n            mode: 'normal',\n            style: '',\n            text: 'Hello World 🚀',\n            type: 'text',\n            version: 1,\n          },\n        ],\n        direction: 'ltr',\n        format: '',\n        indent: 0,\n        type: 'paragraph',\n        version: 1,\n      },\n    ],\n    direction: 'ltr',\n    format: '',\n    indent: 0,\n    type: 'root',\n    version: 1,\n  },\n} as unknown as SerializedEditorState\n\nexport function EditorDemo() {\n  const [editorState, setEditorState] =\n    useState\u003cSerializedEditorState\u003e(initialValue)\n\n  return (\n    \u003cEditor\n      editorSerializedState={editorState}\n      onSerializedChange={(value) =\u003e setEditorState(value)}\n    /\u003e\n  )\n}\n```\n\n## Start History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=htmujahid/shadcn-editor\u0026type=Date)](https://star-history.com/#bytebase/star-history\u0026Date)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmujahid%2Fshadcn-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtmujahid%2Fshadcn-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtmujahid%2Fshadcn-editor/lists"}