This is the documentation site for the Wire UI Library, built with Storybook. It provides interactive examples and documentation for all the components in the library.
# Navigate to the docs directory
cd docs
# Install dependencies
npm install
# Start the Storybook development server
npm run storybook
This will start the Storybook server at http://localhost:6006.
# Build the static site
npm run build
This will generate a static site in the storybook-static
directory, which can be deployed to any static hosting service.
The documentation site can be deployed to any static hosting service, such as:
- GitHub Pages
- Netlify
- Vercel
- AWS S3
- Firebase Hosting
To deploy, simply run:
npm run deploy
.storybook/
- Storybook configurationstories/
- Component stories and documentationIntroduction.mdx
- Introduction pagecomponents/
- Component-specific stories
To add documentation for a new component:
- Create a new story file in
stories/components/
- Import the component from the UI library
- Define the component's props and examples
- Add the story to Storybook
Contributions to improve the documentation are welcome. Please follow these steps:
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request