Something went wrong. Try again.
Training wheels for the terminal
Something went wrong. Try again.
630 B · 22 lines
TypeScript
at main
1234567891011121314151617181920212223import { composeRenderProps } from "react-aria-components";import { twMerge } from "tailwind-merge";import { tv } from "tailwind-variants";
export const focusRing = tv({ base: "outline outline-blue-600 dark:outline-blue-500 forced-colors:outline-[Highlight] outline-offset-2", variants: { isFocusVisible: { false: "outline-0", true: "outline-2", }, },});
export function composeTailwindRenderProps<T>( className: string | ((v: T) => string) | undefined, ...tw: string[]): string | ((v: T) => string) { return composeRenderProps(className, (className) => twMerge(...tw, className), );}