We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce8d37 commit fb02a6dCopy full SHA for fb02a6d
README.md
@@ -44,13 +44,17 @@ yarn add react-nice-avatar
44
```
45
2. Generate a random configuration, save it so that you can always rendering a same avatar with the configuration.
46
```js
47
- const config = genConfig(AvatarConfig?)
+ const config = genConfig(AvatarConfig?)
48
49
+
50
+ `tip`: AvatarConfig is an Object, plz check the **Options** below for what attributes can be passed in
51
52
3. Render the component with specific width / height and configuration.
53
```jsx
54
<Avatar style={{ width: '8rem', height: '8rem' }} {...config} />
55
56
or
57
58
59
<Avatar className="w-32 h-32" {...config} />
60
0 commit comments