Skip to content

Conversation

yuheiy
Copy link
Contributor

@yuheiy yuheiy commented Dec 20, 2023

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!

@thecrypticace thecrypticace changed the title include class:list in the default tailwindCSS.classAttributes for Astro Support Astro's class:list attribute by default Mar 21, 2024
@thecrypticace thecrypticace merged commit e191eb5 into tailwindlabs:master Mar 21, 2024
@thecrypticace
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants