2.0.0 • Published 4 months ago

@streamelements/ui v2.0.0

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

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:

  1. Make your changes
  2. From the root of the monorepo, run pnpm changeset
  3. Select this package and follow the instructions
  4. Commit the changeset file
  5. 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