leptos_declarative

Declarative components to represent control-flow and other useful constructs in the [leptos] web framework not directly provided by default.

This crate provides 2 main components

Usage

For more usage examples, please refer to the respective components' documentation, but here's a taste.

If

```rust use leptos::; use leptos_declarative::prelude::;

let (a, ) = createsignal(cx, true); let (b, ) = createsignal(cx, false);

view! { cx, "A is true!" "B is true!" "Both A and B are false!" }; ```

Portal

```rust use leptos::; use leptos_declarative::prelude::;

struct PortalId;

view! { cx,

"Portal goes here!"

"I went through the portal!"

}; ```