0.1.1 • Published 12 months ago
henst v0.1.1
Flowers Frontend Storybook
Installation
To install the project and its dependencies, follow these steps:
Clone the repository:
git clone https://github.com/your-username/flowers-frontend-storybook.git
Navigate to the project directory:
cd flowers-frontend-storybook
Install the dependencies:
npm install
Usage
To use the components from this project in your own applications, you can follow these steps:
Install the package in your project:
npm install flowers-frontend-storybook
Import the desired components in your code:
import { Button, Card, FlowerImage } from 'flowers-frontend-storybook';
Use the imported components in your application:
function App() { return ( <div> <Card> <FlowerImage src="path/to/image.jpg" /> <Button>Click me</Button> </Card> </div> ); }
Customize the imported components according to your needs.
Available Scripts
In the project directory, you can run the following scripts:
dev
: Starts the Next.js development server.build
: Builds the Next.js application for production.start
: Starts the Next.js production server.lint
: Runs ESLint to check for linting errors.storybook
: Starts the Storybook server on port 6006.build-storybook
: Builds the static version of Storybook.chromatic
: Publishes Storybook to Chromatic for visual regression testing.prepare
: Installs Husky hooks for pre-commit and pre-push actions.
You can run these scripts using the following command:
npm run <script-name>
0.1.1
12 months ago