Utils
optics/utilsFreeUtility
Library utility: utils
See it running
Open the demo on optics
optics.agusmayol.com.ar/components/utilsInstall it
npx shadcn@latest add https://optics.agusmayol.com.ar/r/utils.jsonSource
1import { clsx } from "clsx";2import { twMerge } from "tailwind-merge";34export function cn(...inputs) {5 return twMerge(clsx(inputs));6}
What it pulls in
npm packages
Files it writes
More from optics
All 79 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Cursor Rule: Back Endcursor-rule-back-end | optics | Utilities | Free | no deps | |
| Cursor Rule: Bulk Processingcursor-rule-bulk-processing | optics | Utilities | Free | no deps | |
| Cursor Rule: Commits Conventioncursor-rule-commits-convention | optics | Utilities | Free | no deps | |
| Cursor Rule: Front Endcursor-rule-front-end | optics | Utilities | Free | no deps | |
| Cursor Rule: Generalcursor-rule-general | optics | Utilities | Free | no deps | |
| Cursor Rule: React Optimizationcursor-rule-react-optimization | optics | Utilities | Free | no deps | |
| Cursor Rule: Web Interface Guidelinescursor-rule-web-interface-guidelines | optics | Utilities | Free | no deps | |
| Get strict contextget-strict-context | optics | Utilities | Free | no deps |
