@sa2rn/ui (1.1.3)
Published 2025-04-11 10:48:32 +02:00 by sa2rn
Installation
@sa2rn:registry=
npm install @sa2rn/ui@1.1.3
"@sa2rn/ui": "1.1.3"
About this package
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default tseslint.config({
extends: [
// Remove ...tseslint.configs.recommended and replace with this
...tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
...tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
...tseslint.configs.stylisticTypeChecked,
],
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default tseslint.config({
plugins: {
// Add the react-x and react-dom plugins
'react-x': reactX,
'react-dom': reactDom,
},
rules: {
// other rules...
// Enable its recommended typescript rules
...reactX.configs['recommended-typescript'].rules,
...reactDom.configs.recommended.rules,
},
})
Dependencies
Dependencies
ID | Version |
---|---|
@hookform/resolvers | ^5.0.1 |
@radix-ui/react-label | ^2.1.2 |
@radix-ui/react-navigation-menu | ^1.2.5 |
@radix-ui/react-slot | ^1.1.2 |
@tailwindcss/vite | ^4.1.3 |
class-variance-authority | ^0.7.1 |
clsx | ^2.1.1 |
eslint-config-airbnb | ^19.0.4 |
react-hook-form | ^7.55.0 |
tailwind-merge | ^3.2.0 |
tailwindcss | ^4.1.3 |
tw-animate-css | ^1.2.5 |
zod | ^3.24.2 |
Development Dependencies
ID | Version |
---|---|
@chromatic-com/storybook | ^3 |
@eslint/js | ^9.21.0 |
@sa2rn/eslint-config-strict | 1.0.0 |
@storybook/addon-essentials | ^8.6.12 |
@storybook/addon-onboarding | ^8.6.12 |
@storybook/blocks | ^8.6.12 |
@storybook/experimental-addon-test | ^8.6.12 |
@storybook/manager-api | ^8.6.12 |
@storybook/react | ^8.6.12 |
@storybook/react-vite | ^8.6.12 |
@storybook/test | ^8.6.12 |
@storybook/theming | ^8.6.12 |
@testing-library/dom | ^10.4.0 |
@testing-library/react | ^16.3.0 |
@types/node | ^22.14.0 |
@types/react | ^19.1.0 |
@types/react-dom | ^19.1.1 |
@vitejs/plugin-react | ^4.3.4 |
@vitest/browser | ^3.1.1 |
@vitest/coverage-v8 | ^3.1.1 |
eslint | ^9.21.0 |
eslint-plugin-react-hooks | ^5.1.0 |
eslint-plugin-react-refresh | ^0.4.19 |
eslint-plugin-storybook | ^0.12.0 |
globals | ^15.15.0 |
jsdom | ^26.0.0 |
lucide-react | ^0.487.0 |
playwright | ^1.51.1 |
react | ^19.0.0 |
react-dom | ^19.0.0 |
storybook | ^8.6.12 |
typescript | ~5.7.2 |
typescript-eslint | ^8.24.1 |
vite | ^6.2.0 |
vite-plugin-dts | ^4.5.3 |
vitest | ^3.1.1 |
Peer Dependencies
ID | Version |
---|---|
lucide-react | ^0.487.0 |
react | ^19.0.0 |
react-dom | ^19.0.0 |