import type React from 'react'; import type { DismissDetail } from './types.js'; /** * @csspart base */ export interface BadgeOwnProps { /** * Unique identifier for the element. * @example 'example-id' */ id?: string; /** * Visible label text. * @example 'Example label' */ label?: string; /** * Visual style variant. Allowed values: `filled`, `outline`, `ghost`. * @example 'filled' */ variant?: 'filled' | 'outline' | 'ghost'; /** * Semantic color intent (e.g. primary, success, danger). Allowed values: `neutral`, `primary`, `info`, `success`, `warning`, `danger`. * @example 'neutral' */ intent?: 'neutral' | 'primary' | 'info' | 'success' | 'warning' | 'danger'; /** * Corner radius style. Allowed values: `sharp`, `rounded`, `pill`. * @example 'sharp' */ shape?: 'sharp' | 'rounded' | 'pill'; /** * Component size. Allowed values: `xs`, `sm`, `md`, `lg`, `xl`. * @example 'xs' */ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'; /** * Dot-only mode — renders a small colored indicator with no text. * @defaultValue false * @example true */ dot?: boolean; /** * Whether the component can be dismissed by the user. * @defaultValue false * @example true */ dismissible?: boolean; /** * Accessible label for the dismiss button (shown when dismissible is true). * @example 'example' */ dismissLabel?: string; /** * Adds role="status" and aria-live="polite" for live-region announcements. * @defaultValue false * @example true */ dynamic?: boolean; /** * Fires when the user dismisses the component. Detail: `DismissDetail`. * @example (event) => console.log(event.detail) */ onDismiss?: (event: CustomEvent) => void; /** CSS class applied to the Custom Element host. * @example 'my-component' */ className?: string; /** Inline styles applied to the Custom Element host. * @example { marginTop: 8 } */ style?: React.CSSProperties; } /** * Props for ``: the component's own API plus every standard DOM * attribute and native React event handler, forwarded verbatim to the * `` host — `id`, `data-*`, `aria-*`, `title`, `tabIndex`, * `slot`, `onMouseEnter`, and the rest. Own props always win over a * same-named DOM attribute. */ export type BadgeProps = BadgeOwnProps & Omit, keyof BadgeOwnProps | 'children' | 'dangerouslySetInnerHTML'>; export declare const Badge: React.ForwardRefExoticComponent, "children" | "dangerouslySetInnerHTML" | keyof BadgeOwnProps> & React.RefAttributes>;