@soulsam480/june
v0.1.1
Published
June component library
Downloads
6
Maintainers
Readme
June component library
A minimal component lib for personal projects
Features
- Tree shaked
- Style via WIndicss/Tailwind
- Icons powered by @antfu/vite-plugin-purge-icons (opt in only for vite apps)
Based on
- React
- Vite
- WindiCSS/Tailwind
- TypeScript
- Iconify
Usage
please don't skip following steps
install
yarn add @soulsam480/june
npm install @soulsam480/june
pnpm add @soulsam480/june
install peer dependencies
- react
- react-transition-group
- tailwind
if you want to use icons (only for vite)
- @iconify/iconify@latest
- @iconify/json@latest
- vite-plugin-purge-icons@latest and config in vite config
config
- add to windi/tailiwnd config
import { JuneTWindSafelist } from '@soulsam480/june'
{
safelist: [...JuneTWindSafelist],
extract: { include: ['./node_modules/@soulsam480/june/dist/*'] },
};
- import CSS
import '@soulsam480/june/dist/style.css';
Caution
even after doing all these, there might be some issues, I'm advising not use this for your projects. Thx