Back to Explore

ertgl/clsx

GitHub
1 watchersOpen source

clsx is a Python utility for defining conditional HTML `class` attribute values, replacing error-prone string concatenation with a `clsx()` function that returns a class name string. It can take many input types (strings, booleans, lists, dicts, and callables) and also provides a lower-level evaluation API for lazily processing and optionally extending or deduplicating the generated class names.

A status summary will appear after the next weekly refresh.

AI-generated from public sources. May be inaccurate. Report

Recent updates

No recent updates have been summarized for this source yet.