Skip to main content
Module

x/lunchbox/src/utils.ts>opt

Component Library 🍱 for Deno πŸ¦• Fresh πŸ‹
Latest
variable opt
import { opt } from "https://deno.land/x/lunchbox@v0.3.15/src/utils.ts";

This function makes final classNames (the result of the cn() function) optional and allows a custom class to be appended or to override it altogether.

type

(
className: string,
customClassName?: string | JSX.SignalLike<string | undefined>,
nostyle?: boolean,
) => unknown