index.d.ts 556 Bytes
Newer Older
jim chen's avatar
jim chen committed
1 2
import React from "react";
export interface AvatarItemProps {
3
  tips: React.ReactNode;
jim chen's avatar
jim chen committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
  src: string;
}

export interface AvatarListProps {
  size?: "large" | "small" | "mini" | "default";
  children:
    | React.ReactElement<AvatarItem>
    | Array<React.ReactElement<AvatarItem>>;
}

declare class AvatarItem extends React.Component<AvatarItemProps, any> {
  constructor(props: AvatarItemProps);
}

export default class AvatarList extends React.Component<AvatarListProps, any> {
  constructor(props: AvatarListProps);
  static Item: typeof AvatarItem;
}