0.2.0 • Published 4 months ago

astri-storybook-demo v0.2.0

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

V2X Management Web

Storybook React Mui react-i18next

🔖 This is a Storybook that provides the usage and demos for React components. When using it, please copy the desired component files from the 'components' folder into your project.

Getting started

Install dependencies for the first time

  npm install --global yarn
  yarn install

Start the Storybook

  yarn storybook

Available Scripts

In the project directory, you can run:

yarn storybook

Start the component explorer on port 6006

yarn build-storybook

Will output a static Storybook in the storybook-static directory, which can then be deployed to any static site hosting service.

yarn i18n or yarn i18n-windows

This is for auto update locale language files, first edit public/i18n.csv, then use yarn i18n to update the JSON files in src/locales directory

For Windows OS, please change public/i18n.csv from CRLF to LF, and use yarn i18n-windows