Class autocompletion
IntelliSense
<template>
<UCard :config="config" />
</template>
<script setup>
const config = /*tw*/ {
card: 'bg-white dark:bg-slate-900'
}
</script>VSCode
JetBrains IDEs
Last updated
<template>
<UCard :config="config" />
</template>
<script setup>
const config = /*tw*/ {
card: 'bg-white dark:bg-slate-900'
}
</script>Last updated
{
"editor.quickSuggestions": {
"strings": true
},
"tailwindCSS.classAttributes": ["class", "config"],
"tailwindCSS.experimental.classRegex": [
["config:\\s*{([^)]*)\\s*}", "[\"'`]([^\"'`]*).*?[\"'`]"],
["/\\*tw\\*/\\s*{([^;]*)}", ":\\s*[\"'`]([^\"'`]*).*?[\"'`]"],
["/\\* tw \\*/\\s*{([^;]*)}", ":\\s*[\"'`]([^\"'`]*).*?[\"'`]"]
]
}{
"suggestions": true,
"classAttributes": ["class", "config"],
"experimental": {
"classRegex": [
["config:\\s*{([^)]*)\\s*}", "[\"'`]([^\"'`]*).*?[\"'`]"],
["/\\*tw\\*/\\s*{([^;]*)}", ":\\s*[\"'`]([^\"'`]*).*?[\"'`]"]
]
}
}