v0.3.1
Features
Modeenum returns with support to easily go to/from string types. So you can use whichever is easiest at the moment for whatever you're doing. For example settingmode="dark"when using<ThemeProvider>or matching the enum when working with the context in a theming component. Working with cookies is nicer too.- Tailwind will fail now instead of using the last good cached version of CSS which makes working on Singlestage a bit nicer if you make a CSS error.
- Added
SelectContentandSelectItemsub-components forSelect - Added
Reactivebinding type that can take any value and upgrade it to aRwSignal. Thanks @mahdi739!
For example:
<Checkbox checked=true />is effectively the same as:
<Checkbox checked=RwSignal::new(true) />A RwSignal defined elsewhere can also be used:
let checked = RwSignal::new(true);
view!{
<Checkbox checked />
}In this case the RwSignal and the Checkbox are coupled. Changing one will update the other and notify all listeners.
Full Changelog: v0.3.0...v0.3.1