Blame view

天文台pc/tianwentai-ui/node_modules/@radix-ui/react-avatar/dist/index.d.mts 1.52 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  import * as _radix_ui_react_context from '@radix-ui/react-context';
  import * as React from 'react';
  import { Primitive } from '@radix-ui/react-primitive';
  
  declare const createAvatarScope: _radix_ui_react_context.CreateScope;
  type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
  type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
  interface AvatarProps extends PrimitiveSpanProps {
  }
  declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
  type PrimitiveImageProps = React.ComponentPropsWithoutRef<typeof Primitive.img>;
  interface AvatarImageProps extends PrimitiveImageProps {
      onLoadingStatusChange?: (status: ImageLoadingStatus) => void;
  }
  declare const AvatarImage: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
  interface AvatarFallbackProps extends PrimitiveSpanProps {
      delayMs?: number;
  }
  declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
  declare const Root: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
  declare const Image: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
  declare const Fallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
  
  export { Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Fallback, Image, Root, createAvatarScope };