Skip to content

v0.3.1

Choose a tag to compare

@adoyle0 adoyle0 released this 17 Oct 03:58
· 89 commits to main since this release

Features

  • Mode enum 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 setting mode="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 SelectContent and SelectItem sub-components for Select
  • Added Reactive binding type that can take any value and upgrade it to a RwSignal. 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