Expand description
The sycamore prelude.
In most cases, it is idiomatic to use a glob import (aka wildcard import) at the beginning of your Rust source file.
use sycamore::prelude::*;
Re-exports§
Macros§
- A macro for ergonomically creating complex UI complex layouts.
Structs§
- A special property type to allow the component to accept passthrough attributes. This can be useful if your component wraps an HTML element, i.e. accessible component libraries.
- A special property type to allow the component to accept children.
- Rendering backend for the DOM.
- Rendering backend for the DOM with hydration support.
- A reference to a
GenericNode
. This allows imperatively accessing the node. - Rendering backend for Server Side Rendering, aka. SSR.
- Represents an UI view. Usually constructed using the
view!
macro or using the builder API.
Enums§
- The value of a passthrough attribute. The default for unknown attributes is
AttributeValue::Str
orAttributeValue::DynamicStr
Traits§
- Abstraction over a rendering backend.
- Trait that is implemented by all
GenericNode
backends that render to HTML.
Functions§
- Create a new
NodeRef
on the current [Scope
]. - Create a unique ID that’s stable between SSR and hydration.
- Queue up a callback to be executed when the component is mounted.
Attribute Macros§
- A macro for creating components from functions.
Derive Macros§
- The derive macro for
Props
. The macro creates a builder-like API used in theview!
macro.