leptos-rs / leptos

Build fast web applications with Rust.
https://leptos.dev
MIT License
15.28k stars 599 forks source link

feat: Attr exposes PhantomData field #2641

Closed luoxiaozero closed 2 weeks ago

luoxiaozero commented 2 weeks ago

Exposes the PhantomData field to allow the creation of Attr instances in external libraries.

gbj commented 2 weeks ago

Thanks for the PR. It might make sense for me to make this a ::new() function before release, although having pub fields means destructuring is possible, which is probably good.