Skip to content

Tagify preset

Dit schakelt de tagify modus in voor andere presets.

Bron Code

Installatie

bash
pnpm add -D @unocss/preset-tagify
bash
yarn add -D @unocss/preset-tagify
bash
npm install -D @unocss/preset-tagify
bash
bun add -D @unocss/preset-tagify
ts
import presetTagify from '@unocss/preset-tagify'
import { defineConfig } from 'unocss'

export default defineConfig({
  presets: [
    presetTagify({ /* opties */ }),
    // ...andere presets
  ],
})

Tagify modus

Deze preset kan van pas komen wanneer je alleen één unocss regel hoeft toe te passen op een element.

html
<span class="text-red"> rode tekst </span>
<div class="flex">flexbox</div>
Ik voel me vandaag <span class="i-line-md-emoji-grin"></span>!

Met tagify modus, kun je CSS stijlen insluiten in HTML tags:

html

Released under the MIT License.