leptos_core/
lib.rs

1#![deny(missing_docs)]
2
3//! This crate contains several utility pieces that depend on multiple crates.
4//! They are all re-exported in the main `leptos` crate.
5
6mod for_component;
7mod map;
8mod suspense;
9mod transition;
10
11pub use for_component::*;
12pub use map::*;
13pub use suspense::*;
14pub use transition::*;
15pub use typed_builder;
16
17/// Describes the properties of a component. This is typically generated by the `Prop` derive macro
18/// as part of the `#[component]` macro.
19pub trait Prop {
20    /// Builder type, automatically generated.
21    type Builder;
22
23    /// The builder should be automatically generated using the `Prop` derive macro.
24    fn builder() -> Self::Builder;
25}