-
-
Notifications
You must be signed in to change notification settings - Fork 114
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: add prop variant to the Input Component #1776
feat: add prop variant to the Input Component #1776
Conversation
Features
Bug Fixes
ContributorsCommit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
@lyon93 remove the shadow when readOnly is passed |
@@ -127,6 +127,9 @@ Input.propTypes = { | |||
className: PropTypes.string, | |||
/** An object with custom style applied to the outer element. */ | |||
style: PropTypes.object, | |||
/** The variant changes the appearance of the Input. Accepted variants include default, | |||
* and shaded. This value defaults to default. */ | |||
variant: PropTypes.oneOf(['default', 'shaded']), |
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.
we need to add variant prop to src/components/Input/index.d.ts file, in order to bring typescript support
Code Climate has analyzed commit 3f50399 and detected 0 issues on this pull request. View more on Code Climate. |
fix: #1775
Changes proposed in this PR:
I have followed (at least) the PR section of the contributing guide.
@nexxtway/react-rainbow