From 0a85308021fa9dcebed5b7d22cd7b3a0a255674f Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Tue, 12 May 2026 16:14:10 -0700 Subject: [PATCH] Add missing fastapi-vite shadcn utils.ts Silently dropped by the unanchored `lib/` gitignore rule when the example was originally ported. PR #112 fixed the rule and re-added the docs copy but missed this one; every shadcn component under frontend/src/components imports `cn` from it, so a fresh clone would fail to build. --- examples/fastapi-vite/frontend/src/lib/utils.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 examples/fastapi-vite/frontend/src/lib/utils.ts diff --git a/examples/fastapi-vite/frontend/src/lib/utils.ts b/examples/fastapi-vite/frontend/src/lib/utils.ts new file mode 100644 index 00000000..a5ef1935 --- /dev/null +++ b/examples/fastapi-vite/frontend/src/lib/utils.ts @@ -0,0 +1,6 @@ +import { clsx, type ClassValue } from "clsx"; +import { twMerge } from "tailwind-merge"; + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)); +}