2.0.0 • Published 4 months ago
@streamelements/ui v2.0.0
StreamElements UI Components
Note: This package was formerly known as
@streamelements/ui-common-react
and has been integrated into the monorepo.
This project provides reusable UI components used across StreamElements applications.
Local development
In the project directory, you can run:
pnpm dev
Open http://localhost:5173 to view it in the browser.
- Add your items to src/App.tsx
- Add your components to src/components
- Remember to export your components in src/components/index.ts
Edit files accordingly to your needs and see the changes in the browser.
Deployment
This package is published through the monorepo using changesets:
- Make your changes
- From the root of the monorepo, run
pnpm changeset
- Select this package and follow the instructions
- Commit the changeset file
- When merged to main, the GitHub Actions will handle versioning and publishing
Usage
Import components as needed:
import { Footer, Header } from '@streamelements/ui';
And use them in your code as shown in src/App.tsx
2.0.0
4 months ago