/** * Badge Component Props Interface * Defines all configurable properties for the seki-badge Web Component */ /** * Variant types for badge styling * - default: Standard badge with primary color * - secondary: Muted appearance for secondary information * - destructive: Warning/error state with red tones * - outline: Border-only variant without background fill */ export type BadgeVariant = 'default' | 'secondary' | 'destructive' | 'outline'; /** * Props interface for seki-badge component * * @example * ```tsx * const props: SekiBadgeProps = { * variant: 'default', * rounded: true, * className: 'custom-badge' * } * ``` * * @example Number badge * ```tsx * const props: SekiBadgeProps = { * number: 21, * max: 20 // Shows "20+" * } * ``` */ export interface SekiBadgeProps { /** * Visual variant of the badge * @default 'default' */ variant?: BadgeVariant; /** * Enable rounded pill styling * @default false */ rounded?: boolean; /** * Additional CSS class names to apply * @default undefined */ className?: string; /** * Number to display in the badge * When set, displays the number instead of text content * @default undefined */ number?: number; /** * Maximum limit for number badge * If number exceeds this, shows "max+" instead * Only used when number prop is set * @default undefined */ max?: number; } /** * Badge component interface for TypeScript consumers * Extends HTMLElement with badge-specific properties */ export interface SekiBadgeElement extends HTMLElement { /** * Visual variant of the badge */ variant?: BadgeVariant; /** * Enable rounded pill styling */ rounded?: boolean; /** * Number to display in the badge */ number?: number; /** * Maximum limit for number badge */ max?: number; /** * Additional CSS classes (inherited from HTMLElement) */ className: string; }