@visa/nova-react
Version:
Visa Product Design System Nova React library
27 lines (26 loc) • 987 B
TypeScript
import { ElementType, ForwardedRef } from 'react';
export type BadgeProperties = {
/** Active style */
active?: boolean;
/** Type of Badge */
badgeType?: 'critical' | 'neutral' | 'stable' | 'subtle' | 'warning';
/** Variant of Badge */
badgeVariant?: 'number' | 'icon';
/** @ignore */
className?: string;
/** Clear background */
clear?: boolean;
/** Tag of Component */
tag?: ElementType;
};
/**
* Visual indicators communicating the status of a component.
* @docs {@link https://design.visa.com/react/components/badge | See Docs}
* @vgar TODO
* @wcag TODO
*/
declare const _default: <HTMLElementType = HTMLDivElement>(props: {
children?: import("react").ReactNode | import("react").ReactNode[];
ref?: ForwardedRef<HTMLElementType> | undefined;
} & import("react").AllHTMLAttributes<HTMLElementType> & import("react").SVGAttributes<HTMLElementType> & BadgeProperties) => import("react").ReactElement;
export default _default;