Download frontend/src/lib/utils.ts from yonagush/deerflow: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/spaces/yonagush/deerflow/resolve/main/frontend/src/lib/utils.ts
- Command line
-
hf download hf://spaces/yonagush/deerflow/frontend/src/lib/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/yonagush/deerflow/resolve/main/frontend/src/lib/utils.ts
485 Bytes
| import { clsx, type ClassValue } from "clsx"; | |
| import { twMerge } from "tailwind-merge"; | |
| export function cn(...inputs: ClassValue[]) { | |
| return twMerge(clsx(inputs)); | |
| } | |
| /** Shared class for external links (underline by default). */ | |
| export const externalLinkClass = | |
| "text-primary underline underline-offset-2 hover:no-underline"; | |
| /** Link style without underline by default (e.g. for streaming/loading). */ | |
| export const externalLinkClassNoUnderline = "text-primary hover:underline"; | |