import type { CategoricalIndex, IntentName, } from "@charcuterie/tokens" import type { ReactNode } from "react" import { CATEGORICAL_APPEARANCE_CLASS } from "../categoricalStyles.ts" import type { BadgeSize } from "../controlStyles.ts" import { BADGE_SIZE_CLASS } from "../controlStyles.ts" import type { IntentAppearance } from "../intentStyles.ts" import { INTENT_APPEARANCE_CLASS } from "../intentStyles.ts" import { toClassName } from "../toClassName.ts" import { useIsTextClipped } from "./useIsTextClipped.ts" /** * The visual half of a badge, shared by the two elements that wear * it. * * `Badge` is a `` and `BadgeButton` is a `