Module dioxus_core::prelude

source ·
Expand description

The purpose of this module is to alleviate imports of many common types

This includes types like Element, and Component.

Re-exports§

  • pub use crate::innerlude::AnyValue;
  • pub use crate::innerlude::OptionStringFromMarker;

Structs§

  • An attribute on a DOM node, such as id="my-thing" or href="https://example.com"
  • A boundary that will capture any errors from child components
  • A wrapper around some generic data that handles the event’s state
  • The callback type generated by the rsx! macro when an on field is specified for components.
  • A global runtime that is shared across all scopes that provides the async runtime and context API
  • A guard for a new runtime. This must be used to override the current runtime when importing components from a dynamic library that has it’s own runtime.
  • A component’s unique identifier.
  • A component’s rendered state.
  • A task’s unique identifier.
  • A static layout of a UI tree that describes a set of dynamic and static nodes.
  • A reference to a template along with any context needed to hydrate it
  • A reference to a template along with any context needed to hydrate it
  • A virtual node system that progresses user events and diffs UI trees.

Enums§

Traits§

  • Any component that implements the ComponentFn trait can be used as a component.
  • A trait for anything that has a dynamic list of attributes
  • A value that can be converted into an attribute value
  • A trait that allows various items to be converted into a dynamic node for the rsx macro
  • Every “Props” used for a component must implement the Properties trait. This trait gives some hints to Dioxus on how to memoize the props and some additional optimizations that can be made. We strongly encourage using the derive macro to implement the Properties trait automatically as guarantee that your memoization strategy is safe.
  • A enhanced version of the From trait that allows with more flexibility.
  • A enhanced version of the Into trait that allows with more flexibility.
  • A trait to allow results to be thrown upwards to the nearest Error Boundary

Functions§

Type Aliases§