mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 14:30:49 +08:00
Update index.d.ts (#25675)
Avatar and Image type are diff but the styling is different and the alt attribute is required for Image type.
This commit is contained in:
committed by
Sheetal Nandi
parent
3e13aec055
commit
9a7ca607f5
8
types/rebass/index.d.ts
vendored
8
types/rebass/index.d.ts
vendored
@@ -48,6 +48,14 @@ export interface AvatarProps extends BaseProps<AvatarClass> {
|
||||
type AvatarClass = React.StatelessComponent<AvatarProps>
|
||||
export declare const Avatar: AvatarClass;
|
||||
|
||||
export interface ImageProps extends BaseProps<ImageClass> {
|
||||
size?: number;
|
||||
src?: string;
|
||||
alt?: string;
|
||||
}
|
||||
type ImageClass = React.StatelessComponent<ImageProps>
|
||||
export declare const Image: ImageClass;
|
||||
|
||||
export interface BadgeProps extends BaseProps<BadgeClass> {
|
||||
theme?: "primary" | "secondary" | "default" | "info" | "success" | "warning" | "error";
|
||||
rounded?: boolean | "top" | "right" | "bottom" | "left";
|
||||
|
||||
Reference in New Issue
Block a user