Closed yuheiy closed 3 months ago
In Astro, class:list={...} takes an array of class values.
class:list={...}
<!-- 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!
class:list
tailwindCSS.classAttributes
Thanks!
In Astro,
class:list={...}
takes an array of class values.https://docs.astro.build/en/reference/directives-reference/#classlist
Including
class:list
in the defaulttailwindCSS.classAttributes
should make it more useful!