welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
10 lines (9 loc) • 387 B
TypeScript
import { ComponentPropsWithRef, HTMLAttributes } from 'react';
export type BadgeProps = BadgeOptions & ComponentPropsWithRef<'div'> & HTMLAttributes<HTMLDivElement>;
interface BadgeOptions {
children?: number | React.ReactElement | string;
size?: 'lg' | 'md' | 'sm';
variant?: 'blue' | 'brand' | 'neutral' | 'red' | 'warm';
withNumberAbbreviation?: boolean;
}
export {};