UNPKG

@codegouvfr/react-dsfr

Version:

French State Design System React integration library

13 lines (12 loc) 508 B
import React, { ReactNode } from "react"; import type { AlertProps } from "./Alert"; export type BadgeProps = { className?: string; severity?: AlertProps.Severity | "new"; small?: boolean; noIcon?: boolean; label: NonNullable<ReactNode>; }; /** @see <https://react-dsfr-components.etalab.studio/?path=/docs/components-badge> */ export declare const Badge: React.MemoExoticComponent<React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>>; export default Badge;