@grasp-labs/ds-react-components
v1.12.2
Published
A modern React component library built with TypeScript, Vite, and Tailwind CSS.
Readme
@grasp-labs/ds-react-components
A modern React component library built with TypeScript, Vite, and Tailwind CSS.
Installation
To use this package, run
npm install @grasp-labs/ds-react-componentsUsage
To use the components in your project, first install and configure Tailwind CSS with our custom configuration:
- Install required dependencies:
npm install -D tailwindcss @tailwindcss/vite- Import our pre-configured styles directly into your CSS file:
@import "@grasp-labs/ds-react-components/tailwind-styles.css";- Use components in your application:
import { Button } from "@grasp-labs/ds-react-components";Development
To run Storybook locally for development and testing:
npm install
npm run storybookThis launches Storybook at http://localhost:6006, where you can browse and interact with all components.
Testing
Tests run using Storybook's vitest integration, either using the GUI Storybook or from the CLI:
npm run testReleasing
To release a new version of the package:
- Create a feature branch and make your changes
- After the branch is approved and before merging to
main, run theVersion and Publish PackageGitHub Action on your feature branch selecting the appropriate version bump (patch, minor, major) - Once the build succeeds, merge your feature branch to
main
