Skip to main content
clsx merges class names for use with the tw prop in JSX templates. It supports strings, arrays, objects, and conditional values — the same API surface as the popular clsx package.

Import

Function Signature

Examples

clsx output is passed to the tw prop, which maps Tailwind-like utility classes to Satori-compatible inline styles. See Styles for supported utilities.