Guide: Adding new component #2334
-
Hey, I was trying to add some a new component as per some I have done the following thigs:
Then now, what should I do!! Thanks!! |
Beta Was this translation helpful? Give feedback.
Answered by
Febin-Joseph
Jan 8, 2024
Replies: 1 comment 5 replies
-
sure @jrTilak i will help you ,These all steps you done are correct like creating files in
|
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
jrTilak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sure @jrTilak i will help you ,These all steps you done are correct like creating files in
/registry/default/ui
and/registry/new-york/ui
and creation of/registry/default/example
and/registry/new-york/example
and added the component and its demo in registry these all are correct and the next step is topnpm build:registry
now you will be getting some additional files dont care about it .apps/www/content/docs/components
(keep in mind the extension should be.mdx
)apps/www/config/docs.ts
and add the component name and other details like other in that file .BONUS TIP:
when adding a new component name and other details in
docs.ts
…