index.d.ts 974 B

1234567891011121314151617181920212223
  1. import type { CSSProperties } from 'react';
  2. import type { GetDefaultToken } from '../../theme/internal';
  3. /** Component only token. Which will handle additional calculation of alias token */
  4. export interface ComponentToken {
  5. /**
  6. * @desc 文本横向内间距
  7. * @descEN Horizontal padding of text
  8. */
  9. textPaddingInline: CSSProperties['paddingInline'];
  10. /**
  11. * @desc 文本与边缘距离,取值 0 ~ 1
  12. * @descEN Distance between text and edge, which should be a number between 0 and 1.
  13. */
  14. orientationMargin: number;
  15. /**
  16. * @desc 纵向分割线的横向外间距
  17. * @descEN Horizontal margin of vertical Divider
  18. */
  19. verticalMarginInline: CSSProperties['marginInline'];
  20. }
  21. export declare const prepareComponentToken: GetDefaultToken<'Divider'>;
  22. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  23. export default _default;