@yandex/ui
Version:
Yandex UI components
39 lines (38 loc) • 1.03 kB
TypeScript
import { FC, RefObject, CSSProperties } from 'react';
import './Badge.css';
export interface BadgeProps {
/**
* Ссылка на корневой DOM-элемент компонента
*/
innerRef?: RefObject<HTMLDivElement>;
/**
* Пользовательские стили
*/
style?: CSSProperties;
/**
* Дополнительный класс
*/
className?: string;
/**
* Содержимое, отображаемое внутри значка
*/
content?: string | number;
/**
* Цвет заливки блока
*/
color?: string;
/**
* Цвет текста блока
*/
textColor?: string;
/**
* Цвет обводки блока
*/
outlineColor?: string;
}
export declare const cnBadge: import("@bem-react/classname").ClassNameFormatter;
/**
* Индикатор-счётчик новой информации
* @param {BadgeProps} props
*/
export declare const Badge: FC<BadgeProps>;