cdbreact
Version:
Elegant UI kit and reusable components for building mobile-first, responsive websites and web apps
37 lines (36 loc) • 1.18 kB
TypeScript
import React from "react";
import PropTypes from "prop-types";
interface Props {
children?: React.ReactNode;
className?: string;
flat?: boolean;
size?: string;
borderType?: string;
color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "dark" | "light";
tag?: string;
icon?: any;
intensity?: 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
style?: React.CSSProperties | any;
}
declare const Badge: {
(props: Props): React.JSX.Element;
defaultProps: {
tag: string;
color: string;
borderType: string;
size: string;
intensity: string;
};
propTypes: {
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
className: PropTypes.Requireable<string>;
flat: PropTypes.Requireable<boolean>;
size: PropTypes.Requireable<string>;
borderType: PropTypes.Requireable<string>;
color: PropTypes.Requireable<string>;
tag: PropTypes.Requireable<string>;
intensity: PropTypes.Requireable<string | number>;
};
};
export default Badge;
export { Badge as CDBBadge };