tailwindcss-svg-icon-test
v1.3.5
Published
SVG icons managed by Choiceform
Downloads
3
Readme
Tailwind CSS Plugins
Choiceform icons lib for tailwind css plugin
Install
pnpm install -D @choiceform/tailwindcss-svg-icon
Config
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [
require('@choiceform/tailwindcss-svg-icon')
],
}
// package.json
{
...
iconDir: "icons" // your path
...
}
Usage
<div class="icon-[auth/add-account]"></div>
Example Project
vite + react + tailwind example
pnpm install
pnpm dev