Skip to content

Commit c909011

Browse files
Add prop for Avatar inside jsdoc (#3037)
The jsdoc for Avatar JSX component was missing a prop --------- Co-authored-by: Frederik Bolding <[email protected]>
1 parent 01ff383 commit c909011

File tree

1 file changed

+2
-0
lines changed
  • packages/snaps-sdk/src/jsx/components

1 file changed

+2
-0
lines changed

packages/snaps-sdk/src/jsx/components/Avatar.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { createSnapComponent } from '../component';
66
* The props of the {@link Avatar} component.
77
*
88
* @property address - The address to display. This should be a valid CAIP-10 address.
9+
* @property size - The size of the avatar. Can be `sm`, `md`, or `lg`. Defaults to `md`.
910
*/
1011
export type AvatarProps = {
1112
address: CaipAccountId;
@@ -21,6 +22,7 @@ const TYPE = 'Avatar';
2122
*
2223
* @param props - The props of the component.
2324
* @param props.address - The address to display. This should be a valid CAIP-10 address.
25+
* @param props.size - The size of the avatar. Can be `sm`, `md`, or `lg`. Defaults to `md`.
2426
* @returns An avatar element.
2527
* @example
2628
* <Avatar address="eip155:1:0x1234567890123456789012345678901234567890" />

0 commit comments

Comments
 (0)