Skip to content

Commit fb02a6d

Browse files
authored
Update README.md
1 parent bce8d37 commit fb02a6d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ yarn add react-nice-avatar
4444
```
4545
2. Generate a random configuration, save it so that you can always rendering a same avatar with the configuration.
4646
```js
47-
const config = genConfig(AvatarConfig?)
47+
const config = genConfig(AvatarConfig?)
4848
```
49+
50+
`tip`: AvatarConfig is an Object, plz check the **Options** below for what attributes can be passed in
51+
4952
3. Render the component with specific width / height and configuration.
5053
```jsx
5154
<Avatar style={{ width: '8rem', height: '8rem' }} {...config} />
5255
```
5356
or
57+
5458
```jsx
5559
<Avatar className="w-32 h-32" {...config} />
5660
```

0 commit comments

Comments
 (0)