@wesleywardlaw/react-sprig
v2.5.0
Published
<p align="center"> <img src="https://raw.githubusercontent.com/wesleywardlaw/component-library/refs/heads/main/public/logo.png" alt="React-Sprig Logo" width="300" height="300" style="background:white; border-radius:16px; padding:8px;" /> </p>
Readme
react-sprig
react-sprig is a UI component library developed in React and Tailwind that provides all of the basic components needed to kickstart a project. A Storybook demonstrating the components is available at https://react-sprig.netlify.app/.
Getting Started
To install dependencies:
pnpm installTo run the project in development mode:
pnpm run storybookTesting
This project uses Vitest for unit and component tests. To run the tests, use:
pnpm run testFor interactive test UI:
pnpm run test:uiPlaywright Tests
Additional tests are written with Playwright. To run Playwright tests, use:
pnpm run test:playwrightPublishing with Verdaccio
To test publishing locally, you can use Verdaccio. There is a script to publish to a local Verdaccio registry:
pnpm run verdaccioThis allows for the import and use of react-sprig components in other apps. When running verdaccio, you can then run this command to install react-sprig from your local registry:
pnpm install @wesleywardlaw/react-sprig --registry http://localhost:4873See the Verdaccio documentation for setup and usage instructions.
