UNPKG

@appello/web-ui

Version:

Web ui library for a better development experience

26 lines (25 loc) 716 B
import './styles.scss'; import { FC, HTMLAttributes, ReactNode } from 'react'; import { IconName } from '../../../components/common/Icon'; export declare enum BadgeColor { GREEN = "green", GRAY = "gray", BLUE = "blue", RED = "red", ORANGE = "orange", PINK = "pink", YELLOW = "yellow", GREEN_LIGHT = "green-light", CYAN_DARK = "cyan-dark", CYAN_LIGHT = "cyan-light", PURPLE = "purple" } type AllowedDivProps = Pick<HTMLAttributes<HTMLDivElement>, 'className' | 'style'>; export interface BadgeProps extends AllowedDivProps { children: ReactNode; color: BadgeColor; icon?: IconName; filled?: boolean; } export declare const Badge: FC<BadgeProps>; export {};