-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat: added a hook for generating a unique color #1565
base: main
Are you sure you want to change the base?
Conversation
Playwright Test Component is ready. |
Preview is ready. |
src/hooks/useColorGenerator/__stories__/useColorGenerator.stories.tsx
Outdated
Show resolved
Hide resolved
src/hooks/useColorGenerator/__stories__/useColorGenerator.stories.tsx
Outdated
Show resolved
Hide resolved
src/hooks/useColorGenerator/__stories__/useColorGenerator.stories.tsx
Outdated
Show resolved
Hide resolved
Visual Tests Report is ready. |
| token | Unique attribute of the entity (e.g., name, id, email) | `string` | | | | | ||
| colorKeys | If an array of colors is passed, an index is generated from the token passed, and the value from the color array at that index is returned | `string[]` | | | | | ||
| Name | Description | Type | Default | | | | ||
| :-------- | :----------------------------------------------------- | :----------------------- | :-----: | --- | --- | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type column should also be centered. Also markdown seems broken.
...props, | ||
theme, | ||
}), | ||
[props, theme], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
props
is an object, better to pass individual props
No description provided.