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
// (Compose callbacks is an internal piece from Radix Core; omitted for brevity.)
80
-
```
81
-
82
-
## Notes
83
-
84
-
-**Why `TypedChildrenFn`?**: Leptos attribute passthrough only works if a component doesn't rely on `AnyView` or `Children`. Using typed children ensures classes, events, etc. from the parent can flow to the rendered DOM node.
85
-
-**`as_child`**: Mimics `asChild` in Radix’s React version, but we skip an explicit `<Slot>`: Leptos’s approach to typed fallback rendering covers “slot-like” logic.
86
-
-**Class Handling**: Static classes from a parent can overwrite child-defined classes. No built-in merging exists.
87
-
-**Attribute System Limitations**: Leptos limits you to 26 dynamic attributes. Past that, nest components or try a custom approach.
88
-
-**Parity with React**: In React, `...props` merges everything automatically. In Leptos, we rely on typed props/attributes and can intercept unknown ones with `AttributeInterceptor`.
89
-
90
13
## Documentation
91
14
92
15
See [the Rust Radix book](https://radix.rustforweb.org/) for documentation.
93
16
94
17
## Rust For Web
95
18
96
-
The Rust Radix project is part of the [Rust For Web](https://github.com/RustForWeb).
19
+
The Rust Radix project is part of [Rust For Web](https://github.com/RustForWeb).
97
20
98
21
[Rust For Web](https://github.com/RustForWeb) creates and ports web UI libraries for Rust. All projects are free and open source.
0 commit comments