Ribbon.d.ts 525 B

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