@postenbring/hedwig-react
Version:
React components for [Hedwig Design System](https://github.com/bring/hedwig-design-system).
33 lines • 873 B
TypeScript
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
children: React.ReactNode;
/**
* Color of the badge
*
* @default "lighter"
*/
variant?: "lighter" | "darker" | "white" | "warning";
/**
* Font size of the badge
*
* @default "small"
*/
size?: "small" | "smaller";
/**
* Change the default rendered element for the one passed as a child, merging their props and behavior.
*
* @default false
*/
asChild?: boolean;
}
/**
* Badges are used to label, categorize or organize items using keywords to describe them.
*
* @example
*
* ```tsx
* <Badge variant="darker">Darker</Badge>
* ```
*
*/
export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
//# sourceMappingURL=badge.d.ts.map