-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add range select variant #277
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
size-limit report 📦
|
e06a1d6 to
6c412b5
Compare
6c412b5 to
42ece5f
Compare
|
Also fixed the "with selected value" story |
42ece5f to
c581c62
Compare
lukasbals
left a comment
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.
I'm sorry to be so annoying - but this IMO doesn't fit into the select component. I would make this it's own component to keep the Select cleaner .... if we add properties like rangeFromLabel, ... it really doesn't make sense to have this as a variant of the select. Do you agree?
| const [value, setValue] = React.useState<string[]>(['', '']); | ||
| const [fromError, setFromError] = React.useState<string>(''); | ||
| const [toError, setToError] = React.useState<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.
| const [value, setValue] = React.useState<string[]>(['', '']); | |
| const [fromError, setFromError] = React.useState<string>(''); | |
| const [toError, setToError] = React.useState<string>(''); | |
| const [value, setValue] = useState<string[]>(['', '']); | |
| const [fromError, setFromError] = useState<string>(''); | |
| const [toError, setToError] = useState<string>(''); |
Usually we import useState directly ...
c581c62 to
1318c50
Compare
1318c50 to
4f78adf
Compare
4f78adf to
aeb4cce
Compare
aeb4cce to
99f9537
Compare
99f9537 to
3372e0a
Compare
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.
Fixed the "with selected value" variant.
No description provided.