gpui-rsx 0.5.0

A JSX-like macro for GPUI - simplify UI development with HTML-like syntax
Documentation
1
2
3
4
5
6
7
error: The `whenClass` attribute expects exactly 2 values, found 3.
         help: Use the format: whenClass={(condition, "bg-blue-500 text-white")}
         note: The first value is the condition, the second is a static class string
 --> tests/ui/when_class_wrong_count.rs:5:38
  |
5 |     let _el = rsx! { <div whenClass={(active, "text-white", "bg-blue-500")} /> };
  |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^