UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

27 lines (26 loc) 892 B
import type { ComponentProps, FC, PropsWithChildren } from 'react'; import type { DeepPartial, FlowbiteBoolean, FlowbiteColors, FlowbiteSizes } from '../../'; export interface FlowbiteBadgeTheme { root: FlowbiteBadgeRootTheme; icon: FlowbiteBadgeIconTheme; } export interface FlowbiteBadgeRootTheme { base: string; color: FlowbiteColors; href: string; size: BadgeSizes; } export interface FlowbiteBadgeIconTheme extends FlowbiteBoolean { size: BadgeSizes; } export interface BadgeSizes extends Pick<FlowbiteSizes, 'xs' | 'sm'> { [key: string]: string; } export interface BadgeProps extends PropsWithChildren<Omit<ComponentProps<'span'>, 'color'>> { color?: keyof FlowbiteColors; href?: string; icon?: FC<ComponentProps<'svg'>>; size?: keyof BadgeSizes; theme?: DeepPartial<FlowbiteBadgeTheme>; } export declare const Badge: FC<BadgeProps>;