This is the repository for the VisitScotland Component Library which contains all the components that can be used to build user interfaces for VisitScotland.
Clone the repository then install the package:
yarn install
To set up a development environment, you will need to create a .env file with the necessary environment variables then you can run Storybook with this command:
yarn storybook
The component library can be installed via NPM to be used in your project.
To install the VisitScotland Component Library in your project, run the following command using npm:
npm install @visitscotland/component-library
If using Yarn, use the following command instead:
yarn add @visitscotland/component-library
Before contributing, please read our contribution guidelines and code of conduct.
Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.