Skip to content

Guide: Adding new component #2334

Closed Answered by Febin-Joseph
jrTilak asked this question in Q&A
Discussion options

You must be logged in to vote

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 to

  1. build it by using pnpm build:registry now you will be getting some additional files dont care about it .
  2. Add your componentName.mdx in apps/www/content/docs/components (keep in mind the extension should be .mdx)
  3. Now move to 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

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jrTilak
Comment options

@Febin-Joseph
Comment options

@jrTilak
Comment options

@diegoulloao
Comment options

@diegoulloao
Comment options

Answer selected by jrTilak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants