UNPKG

503 BTypeScriptView Raw
1import * as React from 'react';
2import { LiteralUnion } from '../_util/type';
3import { PresetColorType } from '../_util/colors';
4declare type RibbonPlacement = 'start' | 'end';
5export interface RibbonProps {
6 className?: string;
7 prefixCls?: string;
8 style?: React.CSSProperties;
9 text?: React.ReactNode;
10 color?: LiteralUnion<PresetColorType, string>;
11 children?: React.ReactNode;
12 placement?: RibbonPlacement;
13}
14declare const Ribbon: React.FC<RibbonProps>;
15export default Ribbon;