UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

18 lines (17 loc) 672 B
import type { PropsFor } from "../../types.js"; export type TagVariant = TagProps["variant"]; export type TagProps = PropsFor<"button", { /** Indicate selected tag */ active?: boolean; /** Set a style with variant; 'basic' (default) or 'compact' */ variant?: "basic" | "compact"; /** Click handler */ onClick: (event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void; }>; /** * Clickable Tag - also see `<Badge>` * * @see https://bifrost.intility.com/react/tag */ declare const Tag: import("react").ForwardRefExoticComponent<TagProps & import("react").RefAttributes<HTMLButtonElement>>; export default Tag;