Please follow these instructions for contributing to PRIME
.
To run the Storybook
page locally, pull down the project and run:
npm install
npm run storybook
To use the Vue playground
npm start
Then navigate to http://localhost:5173/playground/index.html
More detailed docs exist on the storybook.
- Create a new component directory and index.svelte file in
/elements
- Create a new
[component].stories.mdx
file in/stories
- Import the component in
main.ts
- Import the
addStyles()
helper inlib/
to the component to add the shared component stylesheet
Linked below are some articles that provide knowledge for how to best build reusable, generic web components.