interface.ts 534 B

123456789101112131415161718
  1. import { ArrayElement } from '../_base/base';
  2. import { strings } from '@douyinfe/semi-foundation/floatButton/constants';
  3. import { BadgeProps } from '../badge';
  4. export interface FloatButtonProps {
  5. shape?: ArrayElement<typeof strings.SHAPE>;
  6. colorful?: boolean;
  7. style?: React.CSSProperties;
  8. className?: string;
  9. icon?: React.ReactNode;
  10. onClick?: (e: React.MouseEvent) => void;
  11. href?: string;
  12. target?: string;
  13. disabled?: boolean;
  14. size?: ArrayElement<typeof strings.SIZE>;
  15. badge?: BadgeProps
  16. }