Block a user
@lenei/ui (0.1.0)
Published 2026-02-14 10:47:04 +00:00 by Leon
Installation
@lenei:registry=npm install @lenei/ui@0.1.0"@lenei/ui": "0.1.0"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 (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// 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,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
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 defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
Dependencies
Dependencies
| ID | Version |
|---|---|
| @headlessui/react | ^2.2.9 |
| clsx | ^2.1.1 |
| motion | ^12.34.0 |
| tailwind-merge | ^3.4.0 |
Development Dependencies
| ID | Version |
|---|---|
| @chromatic-com/storybook | ^5.0.1 |
| @eslint/js | ^9.39.1 |
| @storybook/addon-a11y | ^10.2.8 |
| @storybook/addon-docs | ^10.2.8 |
| @storybook/addon-vitest | ^10.2.8 |
| @storybook/react-vite | ^10.2.8 |
| @tailwindcss/vite | ^4.1.18 |
| @types/node | ^24.10.1 |
| @types/react | ^19.2.7 |
| @types/react-dom | ^19.2.3 |
| @vitejs/plugin-react | ^5.1.1 |
| @vitest/browser-playwright | ^4.0.18 |
| @vitest/coverage-v8 | ^4.0.18 |
| @vueless/storybook-dark-mode | ^10.0.7 |
| eslint | ^9.39.1 |
| eslint-plugin-react-hooks | ^7.0.1 |
| eslint-plugin-react-refresh | ^0.4.24 |
| eslint-plugin-storybook | ^10.2.8 |
| globals | ^16.5.0 |
| playwright | ^1.58.2 |
| react | ^19.2.0 |
| react-dom | ^19.2.0 |
| storybook | ^10.2.8 |
| tailwindcss | ^4.1.18 |
| typescript | ~5.9.3 |
| typescript-eslint | ^8.48.0 |
| vite | ^7.3.1 |
| vite-plugin-dts | ^4.5.4 |
| vitest | ^4.0.18 |
Peer Dependencies
| ID | Version |
|---|---|
| react | ^18.0.0 || ^19.0.0 |
| react-dom | ^18.0.0 || ^19.0.0 |
Details
2026-02-14 10:47:04 +00:00
Assets (1)
Versions (1)
View all
npm
5
latest
168 KiB
ui-0.1.0.tgz
168 KiB
0.1.0
2026-02-14