Update 03_components.md

This commit is contained in:
Greg Johnston
2025-08-07 08:09:36 -04:00
committed by GitHub
parent ff23105954
commit 51efb9e3fe

View File

@@ -429,6 +429,8 @@ view! {
}
```
If you want to spread attributes onto a component, but want to apply the attributes to something other than all top-level elements, use [`AttributeInterceptor`](https://docs.rs/leptos/latest/leptos/attribute_interceptor/fn.AttributeInterceptor.html).
See the [`spread` example](https://github.com/leptos-rs/leptos/blob/main/examples/spread/src/lib.rs) for more examples.
```admonish sandbox title="Live example" collapsible=true