This project is a Storybook setup for developing and testing UI components in isolation. Storybook provides a convenient way to build, test, and showcase your components without having to run your entire application.
To get started with this project, follow these steps:
-
Clone the repository:
git clone https://github.com/namanrjpt/storybook-design-shots.git cd storybook-design-shots
-
Install dependencies:
npm install
To run Storybook and start developing your components, use the following command:
npm run storybook
This will start the Storybook server and open it in your default web browser. You can now view and interact with your components.
To run Normally and start developing your components, use the following command:
npm run dev
This will start the react development server and you can navigate between the components by selecting it.
The components are located in the src/Components
directory. Each component has its own folder containing the component file and its corresponding stories file.
Example:
src/
└── Components/
└── Swap Animation/
└── Transfer/
├── Transfer.jsx
└── Transfer.stories.jsx
We welcome contributions to this project. To contribute, follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b master
- Make your changes and commit them:
git commit -m 'Add some feature'
- Push to the branch:
git push origin master
- Submit a pull request.