-
Notifications
You must be signed in to change notification settings - Fork 0
added radio and checkbox #12
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for contributing! |
|
} | ||
|
||
.storybook-checkbox input[type="checkbox"] { | ||
cursor: pointer; |
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.
checkbox shouldn't have cursor: pointer when disabled
checked?: boolean; | ||
disabled?: boolean; | ||
mode?: 'light' | 'dark'; | ||
label?: string; |
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.
should this be ReactNode
? that way you can add formatting to the labels. it should also be required i think since you already wrap the checkbox in a <label>
import './checkbox.css'; | ||
|
||
export interface CheckboxProps { | ||
checked?: boolean; |
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.
should we also add defaultChecked
import React, { FC, useEffect, useState } from 'react'; | ||
import './checkbox.css'; | ||
|
||
export interface CheckboxProps { |
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 should also let you specify name
No description provided.