BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/octane/utils

Utils

octane/utils
FreeUtility

The cn() class utility (clsx + tailwind-merge).

Live preview

live · rendered by the registry
Rendered by octane on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/utils.json

Source

lib/utils.tsraw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/utils.json
1// Ported from shadcn-ui/ui@4baadbc6517070ae8f8feb2c97037adc2b305544
2// apps/v4/registry/bases/radix/lib/utils.ts — unchanged (framework-free).
3import { clsx, type ClassValue } from 'clsx';
4import { twMerge } from 'tailwind-merge';
5
6export function cn(...inputs: ClassValue[]) {
7 return twMerge(clsx(inputs));
8}

What it pulls in

npm packages

  • clsx
  • tailwind-merge

Files it writes

  • lib/utils.ts

Facts

Registry
octane
Type
registry:lib
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-07
Last confirmed
2 days ago

Go to the source

Docs on octane octanejs.dev octanejs/octane on GitHub Raw registry item This item as JSON

More from octane

All 44 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Theme tokensthemeoctaneUtilitiesFreeno deps
TypestypesoctaneUtilitiesFreeno deps
BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex