UNPKG

@vectara/vectara-ui

Version:

Vectara's design system, codified as a React and Sass component library

18 lines (17 loc) 732 B
import { MouseEvent } from "react"; import { LinkProps } from "../link/types"; export declare const BADGE_COLOR: readonly ["accent", "primary", "danger", "warning", "success", "neutral"]; type Props = { children: React.ReactNode; className?: string; color: (typeof BADGE_COLOR)[number]; onClick?: (event: MouseEvent<HTMLButtonElement>) => void; onClose?: () => void; href?: LinkProps["href"]; target?: LinkProps["target"]; track?: LinkProps["track"]; isSelected?: boolean; size?: "s" | "m" | "l"; }; export declare const VuiBadge: ({ children, className, color, onClick, onClose, href, target, track, isSelected, size, ...rest }: Props) => import("react/jsx-runtime").JSX.Element; export {};