#[tessera]Expand description
Transforms a regular Rust function into a Tessera UI component.
§Usage
Annotate a plain free function with #[tessera].
The macro turns the function into a Tessera component entrypoint. Public components use the generated builder syntax, while the original function body runs inside Tessera’s build/replay context.
§Parameters
- Attribute arguments select the Tessera crate path. Use
#[tessera]for normal external authoring, or#[tessera(crate)]inside Tessera crates.
§When NOT to Use
- For functions that should not participate in the component tree.
§See Also
#[shard]for navigation‑aware components with injectable shard state.