This project is part of my frontend internship at Foothill Technology Solutions. The task involves building a button component with Storybook integration and publishing it to Chromatic.
This project is part of my frontend internship at Foothill Technology Solutions. The task involves building a button component with Storybook integration and publishing it to Chromatic.
The button component is designed to be reusable and customizable, with three variants and three different sizes. The variants include Primary, Secondary, and Text. Each variant has specific styling to meet the requirements specified in the task.
You can view a live demo of the component on Chromatic: Demo Link
To run this project locally, you need to have the following installed:
Follow these steps to clone the repository and run Storybook locally:
Clone the repository:
git clone https://github.com/Jamal-SaadEddin/Button-Storybook.git
cd Button-Storybook
Install dependencies:
npm install
Run Storybook:
npm run storybook
Open your browser:
Navigate to http://localhost:6006
to view the Storybook interface.
Set up Chromatic: Ensure you have your Chromatic project token set up as an environment variable.
Publish to Chromatic:
npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN
Thank you for visiting my project! Feel free to star or contribute to the repository if you find it useful.