You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for building this! Rewind is just the type of library I've been wanting to see built on top of Tailwind!
I have some confusion, though, using some components.
Many controls do not seem to have a way to set the current value. For example, Switch and Checkbox normally have a checked prop in other React libraries, while Select would usually have a value for the current value.
Are these just not implemented yet or is there some other way of dealing with this in Rewind?
Thanks.
The text was updated successfully, but these errors were encountered:
When you are passing a prop on a component that does not exist on the defined component props, then that prop will be automatically added to the underlying element!
This means that for example if you are using the Input component and you want to pass the defaultValue prop then you can do it as you would do it for the input element!
Give it a try and let me know if it's more clear for you now :)
First, thanks for building this! Rewind is just the type of library I've been wanting to see built on top of Tailwind!
I have some confusion, though, using some components.
Many controls do not seem to have a way to set the current value. For example,
Switch
andCheckbox
normally have achecked
prop in other React libraries, whileSelect
would usually have avalue
for the current value.Are these just not implemented yet or is there some other way of dealing with this in Rewind?
Thanks.
The text was updated successfully, but these errors were encountered: