retabler
Version:
React Component library via Tabler
28 lines (27 loc) • 815 B
TypeScript
import * as React from "react";
import { Color, Variant } from "../common";
export interface AddonProps {
children: React.ReactNode;
color?: Color;
}
export interface AvatarProps {
children?: React.ReactNode;
imageURL?: string;
style?: React.CSSProperties;
}
export interface BadgeProps {
children?: React.ReactNode;
className?: string;
pill?: boolean;
soft?: boolean;
style?: React.CSSProperties;
color?: Color;
link?: string;
variant?: Variant;
}
export declare const Badge: {
({ className, children, pill, soft, style, color, variant, link, }: BadgeProps): JSX.Element;
Addon: ({ children, color }: AddonProps) => JSX.Element;
Avatar: ({ children, imageURL, style }: AvatarProps) => JSX.Element;
};
export default Badge;