@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
24 lines (23 loc) • 779 B
TypeScript
import * as React from 'react';
import { AdaptableIcon, BadgeDensity, BadgePillStyle, BadgeShape } from '../../../types';
export interface BadgeProps {
/**
* Visual styling of the pill itself (cut-down — see {@link BadgePillStyle}).
*/
pillStyle?: BadgePillStyle;
icon?: AdaptableIcon;
iconPosition?: 'start' | 'end' | 'Start' | 'End';
/**
* Visual shape of the badge - owns the pill's corner radius.
*/
shape?: BadgeShape;
/**
* Padding density preset; modifier class applied to the badge.
*/
density?: BadgeDensity;
/**
* Pixel gap between icon and text (overrides density preset).
*/
iconGap?: number;
}
export declare const Badge: React.FunctionComponent<React.PropsWithChildren<BadgeProps>>;