Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a seed props #41

Closed
thawinwats opened this issue Nov 11, 2022 · 1 comment
Closed

Need a seed props #41

thawinwats opened this issue Nov 11, 2022 · 1 comment

Comments

@thawinwats
Copy link

I want to use avatar as a default profile picture of the user

@wwayne
Copy link
Contributor

wwayne commented Nov 11, 2022

yeah you can, but you have to save the config, same config will render same avatar, e.g.:

import Avatar, { genConfig } from 'react-nice-avatar'
const config = genConfig()  // Save the config into your Database or somewhere for the future usage
<Avatar style={{ width: '8rem', height: '8rem' }} {...config} />

@wwayne wwayne closed this as completed Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants