UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

16 lines (15 loc) 622 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>` */ declare const Tag: import("react").ForwardRefExoticComponent<TagProps & import("react").RefAttributes<HTMLButtonElement>>; export default Tag;