ds-smart-ui
Version:
Smart UI is a React component library that helps you build accessible and responsive web applications.
22 lines (20 loc) • 943 B
TypeScript
import { VariantProps } from 'class-variance-authority';
import { ReactNode } from 'react';
import { ButtonColorTypes } from '../../../types/button-types';
declare const badgeVariants: (props?: ({
variant?: "contained" | "soft" | null | undefined;
color?: "dark" | "light" | "primary" | "secondary" | "success" | "danger" | "warning" | "info" | null | undefined;
size?: "sm" | "md" | "lg" | null | undefined;
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
export interface BadgeProps extends VariantProps<typeof badgeVariants> {
className?: string;
children?: ReactNode;
variant: "contained" | "soft";
size?: "sm" | "md" | "lg";
color?: ButtonColorTypes;
startIcon?: ReactNode;
endIcon?: ReactNode;
id?: string;
}
declare const Badge: import('react').ForwardRefExoticComponent<BadgeProps & import('react').RefAttributes<HTMLDivElement>>;
export default Badge;