Skip to content

Horizontal-org/shira-ui

Repository files navigation

Shira UI

A shared UI component library for Shira's admin and public quiz applications. Built with React, TypeScript, and Storybook.

Features

  • Common React components designed for both admin and public interfaces
  • Built with TypeScript for type safety
  • Documented with Storybook for easy visualization and testing
  • Easy to install and use in both applications

Installation

yarn add @horizontal-org/shira-ui

Local Development

  1. Install dependencies:
yarn
  1. Run Storybook to view and develop components:
yarn storybook
  1. Build the library:
yarn build

Usage

import { Button } from '@horizontal-org/shira-ui'

function App() {
  return (
    <Button>Click me</Button>
  )
}

Update library

  1. Rebuild library
npm run build
  1. update version in package.json
npm run build
  1. Publish new version
npm publish --access public
  1. In the consumer app, update to the new version:
yarn upgrade @horizontal-org/shira-ui

Contributing

  1. Create a new component in src/
  2. Add stories in a corresponding .stories.tsx file
  3. Export the component in src/index.ts
  4. Document usage and props

About

Shira UI library for shared components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published