@aetherstack/utils
v0.1.1
Published
Shared utility functions for Aether UI
Downloads
273
Readme
@aetherstack/utils
Shared utility functions for Aether UI — primarily the
cnclass-name helper.
Part of the Aetherstack design system monorepo.
Install
pnpm add @aetherstack/utilsUsage
import { cn } from "@aetherstack/utils"
// Merge Tailwind classes without conflicts
const className = cn(
"px-4 py-2 rounded-md",
isActive && "bg-primary text-primary-foreground",
className,
)cn combines clsx and tailwind-merge so conflicting Tailwind utilities are resolved correctly.
License
MIT — see LICENSE
