A shared UI component library for Shira's admin and public quiz applications. Built with React, TypeScript, and Storybook.
- 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
yarn add @horizontal-org/shira-ui
- Install dependencies:
yarn
- Run Storybook to view and develop components:
yarn storybook
- Build the library:
yarn build
import { Button } from '@horizontal-org/shira-ui'
function App() {
return (
<Button>Click me</Button>
)
}
- Rebuild library
npm run build
- update version in package.json
npm run build
- Publish new version
npm publish --access public
- In the consumer app, update to the new version:
yarn upgrade @horizontal-org/shira-ui
- Create a new component in
src/
- Add stories in a corresponding
.stories.tsx
file - Export the component in
src/index.ts
- Document usage and props