/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-cx-0ea60a25648f-cx-s0699-c0000.md
`cx` - hono-docs
cx Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt cx Summary The cx composites the two class nam...
cx
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#cx
Summary
The cx composites the two class names. tsx const buttonClass = css` border-radius: 10px; ` const primaryClass = css` background: orange; ` const Button = () => ( Click! ) It can also compose simple strings. ```tsx const Header =...
Content
The cx composites the two class names.
const buttonClass = css`
border-radius: 10px;
`
const primaryClass = css`
background: orange;
`
const Button = () => (
<a class={cx(buttonClass, primaryClass)}>Click!</a>
)It can also compose simple strings.
const Header = () => <a class={cx('h1', primaryClass)}>Hi</a>