index.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import type { GetDefaultToken } from '../../theme/internal';
  2. export interface ComponentToken {
  3. /** @deprecated use gradientFromColor instead. */
  4. color: string;
  5. /** @deprecated use gradientToColor instead. */
  6. colorGradientEnd: string;
  7. /**
  8. * @desc 渐变色起点颜色
  9. * @descEN Start color of gradient
  10. */
  11. gradientFromColor: string;
  12. /**
  13. * @desc 渐变色终点颜色
  14. * @descEN End color of gradient
  15. */
  16. gradientToColor: string;
  17. /**
  18. * @desc 标题骨架屏高度
  19. * @descEN Height of title skeleton
  20. */
  21. titleHeight: number | string;
  22. /**
  23. * @desc 骨架屏圆角
  24. * @descEN Border radius of skeleton
  25. */
  26. blockRadius: number;
  27. /**
  28. * @desc 段落骨架屏上间距
  29. * @descEN Margin top of paragraph skeleton
  30. */
  31. paragraphMarginTop: number;
  32. /**
  33. * @desc 段落骨架屏单行高度
  34. * @descEN Line height of paragraph skeleton
  35. */
  36. paragraphLiHeight: number;
  37. }
  38. export declare const prepareComponentToken: GetDefaultToken<'Skeleton'>;
  39. declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
  40. export default _default;