Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Astro's class:list attribute by default #890

Merged
merged 2 commits into from
Mar 21, 2024
Merged

Support Astro's class:list attribute by default #890

merged 2 commits into from
Mar 21, 2024

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