-
Notifications
You must be signed in to change notification settings - Fork 10
Add Basic Radio Spec #24
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # Radio (spec) | ||
|
|
||
| # Notes | ||
|
|
||
| - Single radio component. | ||
| - Will contain Label. | ||
| - Will have to provide some type of prop to configure the color of the selected radio button. | ||
|
|
||
| | Attributes | Values | Optional ? | | ||
| | :---------- | :------: | ---------: | | ||
| | `id` | string | Yes | | ||
| | `name` | string | No | | ||
| | `value` | string | No | | ||
| | `label` | string | No | | ||
| | `isChecked` | boolean | No | | ||
| | `onChange` | function | No | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. other props look great, can we expose more props to customize the styling aspect of the component? eg: changing the color. Also do we need a radioGroup? as other libraries use. Any merits demerits of those?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
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.
label should be provided as a separate component as
<Label>it helps keep label and input far away and customisable layout wiseThere 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.
Yeah ok that makes sense. Will change it.