@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
16 lines (15 loc) • 692 B
TypeScript
import type { PropsFor } from "../../types.js";
export type BadgeState = BadgeProps["state"];
export type BadgeProps = PropsFor<"div", {
/** Available states: `default`, `success`, `warning`, `alert`, `attn`, `chill`, `brand` and `neutral` */
state?: "default" | "success" | "warning" | "alert" | "attn" | "chill" | "brand" | "neutral";
/** Invert colors */
inverted?: boolean;
/** Apply rounded corners */
pill?: boolean;
}>;
/**
* Non-clickable badge for very short messages (i.e. server status) - also see `<Tag>`
*/
declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLDivElement>>;
export default Badge;