UNPKG

@blocknote/shadcn

Version:

A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.

13 lines (10 loc) 361 B
import { type ClassValue, clsx } from "clsx"; import { extendTailwindMerge } from "tailwind-merge"; // Ensures that `bn-` prefixed Tailwind classes are recognized as Tailwind // classes, so they can be merged correctly. const twMerge = extendTailwindMerge({ prefix: "bn-", }); export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); }