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

Add example usage of params for React #36

Open
nathanlambert opened this issue May 11, 2022 · 2 comments
Open

Add example usage of params for React #36

nathanlambert opened this issue May 11, 2022 · 2 comments

Comments

@nathanlambert
Copy link

I couldn't see an easy way to use params in react. Could you provide an example? 🙏🏼

I wanted to modify light to make the 3d effect more pronounced.

@splix
Copy link
Member

splix commented May 12, 2022

It should be options attribute, like <Hashicon value={value} options={{light: {enabled: true}}}/>. You can check the sources here: https://github.com/emeraldpay/hashicon/blob/master/packages/hashicon-react/src/component.tsx

@nathanlambert
Copy link
Author

nathanlambert commented May 12, 2022

Hmmm that's exactly what I tried, but the TS compiler was complaining. It won't accept partial options. I looked in the hashicon-react repo for default options that I could spread before the light option but couldn't find it.

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