tailwindcss-intellisense icon indicating copy to clipboard operation
tailwindcss-intellisense copied to clipboard

include `class:list` in the default `tailwindCSS.classAttributes` for Astro

Open yuheiy opened this issue 1 year ago • 0 comments

In Astro, class:list={...} takes an array of class values.

<!-- This -->
<span class:list={[ 'hello goodbye', { world: true }, [ 'friend' ] ]} />
<!-- Becomes -->
<span class="hello goodbye world friend"></span>

https://docs.astro.build/en/reference/directives-reference/#classlist

Including class:list in the default tailwindCSS.classAttributes should make it more useful!

yuheiy avatar Dec 20 '23 11:12 yuheiy