Module sycamore::prelude

source ·
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§

Traits§

Functions§

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 the view! macro.