til

today i learned

View on GitHub

Astro has built-in support for clsx

class:list={} in Astro is powered by clsx. It takes an array of class values and converts them into a class string.

docs