import { VariantProps } from "class-variance-authority"; import { ClassValue } from "clsx"; import { ComponentChildren, ComponentType, JSX } from "preact"; import { ChromeKey, DEFAULT_I18N, I18n, InterpolationVars, LanguageProvider, Messages, createI18n, useI18n, useTranslation } from "@clean-jsdoc-theme/bhasha"; import { CopyPageAction, Heading, IslandName, NavNode, PlaygroundProvider, SiteName } from "@clean-jsdoc-theme/utils"; //#region src/components/Button.d.ts /** * shadcn-style Button, ported to Preact. Variant + size are cva-driven and * resolve to the semantic theme tokens (see dwar's `@theme` mapping). * * Note: Preact function components don't forward refs by default, and we avoid * pulling in `preact/compat` just for that. Call sites that need a ref on the * underlying element use `buttonVariants(...)` on a native `