UNPKG

@vectara/vectara-ui

Version:

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

15 lines (14 loc) 625 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; href?: LinkProps["href"]; target?: LinkProps["target"]; track?: LinkProps["track"]; }; export declare const VuiBadge: ({ children, className, color, onClick, href, target, track, ...rest }: Props) => import("react/jsx-runtime").JSX.Element; export {};