-
Notifications
You must be signed in to change notification settings - Fork 3
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
Migrate button to tsx #291
Conversation
Preview link: https://291.react-ui.aboutbits.dev |
/** | ||
* The `Mode` determines if the component is placed on LIGHT or DARK background. | ||
*/ | ||
|
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.
Apart from there being a sporadic newline, this jsdoc comment seems worthless to me
/** | ||
* The size determine the padding between the button text and its border. | ||
*/ | ||
|
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.
Same here. I would remove this jsdoc
The **_default values_** for variant, size, and tone can be found in | ||
the [Button Section](/docs/components-button-button--docs). The | ||
submit button uses `React Hook Form` to automatically disable during | ||
submitting. When the submit button is not placed inside a form (i.e. | ||
it has no form context), you can use the `formControl` prop to pass | ||
the control of the form. |
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.
The information about default values seems unnecessary. The rest is good, but I would put it as a jsdoc of the component SubmitButton
No description provided.