Expand description
Sycamore API Documentation
Sycamore is a VDOM-less web library with fine-grained reactivity.
This is the API docs for sycamore. If you are looking for the usage docs, checkout the Sycamore Book.
Feature Flags
-
builder
- Enables the builder API. -
dom
(default) - Enables rendering templates to DOM nodes. Only useful onwasm32-unknown-unknown
target. -
hydrate
- Enables client-side hydration support. -
suspense
- Enables wrappers aroundwasm-bindgen-futures
to make it easier to extend a reactive scope into anasync
function. -
ssr
- Enables rendering templates to static strings (useful for Server Side Rendering / Pre-rendering). -
serde
- Enables serializing and deserializingSignal
s and other wrapper types usingserde
. -
wasm-bindgen-interning
(default) - Enables interning forwasm-bindgen
strings. This improves performance at a slight cost in binary size. If you want to minimize the size of the result.wasm
binary, you might want to disable this.
Re-exports
pub use generic_node::render_to_string;
pub use generic_node::render_to_string_await_suspense;
pub use generic_node::hydrate;
pub use generic_node::hydrate_get_scope;
pub use generic_node::hydrate_to;
pub use generic_node::render;
pub use generic_node::render_get_scope;
pub use generic_node::render_to;
Modules
The builder pattern API for creating UI elements.
Utilities for components and component properties.
Easing functions.
Utilities for Sycamore when working with futures and async.
Abstraction over a rendering backend.
HTML tag definitions.
Utilities for smooth transitions and animations.
References to nodes in templates.
Portal API.
The sycamore prelude.
Re-export for sycamore-reactive
crate.
Suspense with first class async
/await
support.
Internal utilities for Sycamore.
Macros
Attribute Macros
A macro for creating components from functions.