@aic-kits/react 0.18.1 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/types.d.ts +19 -0
- package/dist/components/Avatar/utils.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +60 -60
- package/dist/index.js +1466 -1423
- package/dist/theme/components/avatar.d.ts +12 -0
- package/dist/theme/components/index.d.ts +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Size } from '../../theme';
|
|
2
|
+
import { BoxProps } from '../Box';
|
|
3
|
+
export type AvatarSize = Size;
|
|
4
|
+
export interface AvatarProps extends Omit<BoxProps, 'size'> {
|
|
5
|
+
/**
|
|
6
|
+
* The source URL of the avatar image.
|
|
7
|
+
*/
|
|
8
|
+
src?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the user, used for fallback if src is not provided.
|
|
11
|
+
* The first letter of the name will be displayed.
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The size of the avatar.
|
|
16
|
+
* Can be a theme Size key or a specific pixel/string value.
|
|
17
|
+
*/
|
|
18
|
+
size?: AvatarSize | string | number;
|
|
19
|
+
}
|