- Create file in
registry/open-source - Add component code to file. Tailwind is best, but add any utils or css to the single file. Check
registry/utilsfor existing utilities. - After the imports, add:
// Credit// https://[open_source_link] - Add file in
registry/example, naming it all lowercase and no spaces,[component_name]example.tsx - Simple export default an Example function that returns a div that takes up the whole screen and centers the component, and implement the component inside the div.
- Add implementation to
ClientWrappercomponent. Recommend using VSCode'sfold allfunction and expanding until you get to thebasicternary, and expand the 2nd fragment. Clone the first<Component></Component>and replace the children and props (tags, name, etc)
- Run
npm run generateto create theregistry.jsonfile, along with some metadata files - Move the generated
registry.jsonto the root of the project, replacing the current file. - Run
npm run registry:build - Push the files to the server