You can remove --use-npm
to use yarn instead of npm.
npx sb init --builder @storybook/builder-vite --type react --use-npm
If you encounter the error code: ERR_OSSL_EVP_UNSUPPORTED
when running npm run dev
or npm run build
, you can try running the following command on the terminal:
export NODE_OPTIONS=--openssl-legacy-provider
- Text
- Heading
- Box
- Button
- TextInput
- TextArea
- Checkbox
- Avatar
- MultiStep