11import { ComponentCard } from "@/components/example/component-card" ;
2- import { HelloWorld } from "@/registry/new-york/blocks/hello-world/hello-world" ;
3- import { ExampleForm } from "@/registry/new-york/blocks/example-form/example-form" ;
4- import PokemonPage from "@/registry/new-york/blocks/complex-component/page" ;
5- import { ExampleCard } from "@/registry/new-york/blocks/example-with-css/example-card" ;
62import { BadgeBarExample } from "@/registry/new-york/blocks/badge-bar/example" ;
73import { PagerExample } from "@/registry/new-york/blocks/pager/example" ;
84import { ImagePreviewExample } from "@/registry/new-york/blocks/image-preview/example" ;
@@ -15,46 +11,20 @@ import { RangeInputExample } from "@/registry/new-york/blocks/range-input/exampl
1511import { FilePickerExample } from "@/registry/new-york/blocks/file-picker/example" ;
1612import { FormFieldExample } from "@/registry/new-york/blocks/form-field/example" ;
1713import { RestTableExample } from "@/registry/new-york/blocks/rest-table/example" ;
14+ import { EditorExample } from "@/registry/new-york/blocks/editor/example" ;
1815
1916export default function Home ( ) {
2017 return (
2118 < div className = "max-w-3xl mx-auto flex flex-col min-h-svh px-4 py-8 gap-8" >
2219 < header className = "flex flex-col gap-1" >
23- < h1 className = "text-3xl font-bold tracking-tight" > Custom Registry</ h1 >
20+ < h1 className = "text-3xl font-bold tracking-tight" >
21+ MobX-RESTful-Shadcn Registry
22+ </ h1 >
2423 < p className = "text-muted-foreground" >
2524 A custom registry for distributing code using shadcn.
2625 </ p >
2726 </ header >
2827 < main className = "flex flex-col flex-1 gap-8" >
29- < ComponentCard
30- name = "hello-world"
31- description = "A simple hello world component"
32- >
33- < HelloWorld />
34- </ ComponentCard >
35-
36- < ComponentCard
37- name = "example-form"
38- description = "A contact form with Zod validation."
39- minHeight = "min-h-[500px]"
40- >
41- < ExampleForm />
42- </ ComponentCard >
43-
44- < ComponentCard
45- name = "complex-component"
46- description = "A complex component showing hooks, libs and components."
47- >
48- < PokemonPage />
49- </ ComponentCard >
50-
51- < ComponentCard
52- name = "example-with-css"
53- description = "A login form with a CSS file."
54- >
55- < ExampleCard />
56- </ ComponentCard >
57-
5828 < ComponentCard
5929 name = "badge-bar"
6030 description = "A component for displaying a list of badges with optional click and delete handlers."
@@ -139,6 +109,14 @@ export default function Home() {
139109 >
140110 < RestTableExample />
141111 </ ComponentCard >
112+
113+ < ComponentCard
114+ name = "editor"
115+ description = "A lightweight rich text editor based on Edkit and Shadcn UI with various formatting tools."
116+ minHeight = "min-h-[400px]"
117+ >
118+ < EditorExample />
119+ </ ComponentCard >
142120 </ main >
143121 </ div >
144122 ) ;
0 commit comments