Expand description
Useful imports.
Re-exports
pub use dioxus_hot_reload;
pub use crate::launch::*;
Modules
Macros
- Start the hot reloading server with the current directory as the root
- The render! macro makes it easy for developers to write jsx-style markup in their components.
- The rsx! macro makes it easy for developers to write jsx-style markup in their components.
- A helper macro for using hooks and properties in async environements.
- A helper macro that merges uses the closure syntax to elaborate the dependency array
Structs
AccordionBody
component properties.Accordion
component properties.AccordionSummary
component properties.- Theming properties for Accordion component.
- Manage the lifecyle of an Animation.
- Theming properties for the App body.
- An error returned by [
RefCell::try_borrow
]. - An error returned by [
RefCell::try_borrow_mut
]. Button
component properties.- Theming properties for Button components.
Canvas
component properties.CursorArea
component properties.DragProvider
component properties.DragZone
component properties.DropZone
component properties.DropdownItem
component properties.- Theming properties for DropdownItem components.
Dropdown
component properties.- Theming properties for Dropdown components.
- Create a configuration for a
UseEditable
. - A wrapper around some generic data that handles the event’s state
ExternalLink
component properties.- Theming properties for ExternalLink components.
- Theming properties for Fonts.
GestureArea
component properties.- Data line for the
Graph
component. Graph
component properties.Input
component properties.- Data of a Keyboard event.
- Launch configuration.
- Configuration Builder.
- A concrete type provider for closures that build
VNode
structures. - A text line from a TextEditor
- Iterator over text lines.
Loader
component properties. Currently empty.- Theming properties for Loader component.
- Data of a Mouse event.
NetworkImage
component properties.- Node layout configuration
- Cached layout results of a Node
- Data of a Mouse event.
- A 2d Rectangle optionally tagged with a unit.
- Wraps a borrowed reference to a value in a
RefCell
box. A wrapper type for an immutably borrowed value from aRefCell<T>
. - A clone of the standard library’s
RefCell
type. - A wrapper type for a mutably borrowed value from a
RefCell<T>
. - A utf8 text rope.
- TextEditor implementing a Rope
- A component’s unique identifier.
- A component’s state separate from its props.
- A wrapper around a component’s
ScopeState
and properties. TheScopeState
provides the majority of methods for the VirtualDom and component state. ScrollView
component properties.- Theming properties the Scrollbar components.
- Selector state is state that is derived from tracked state
Slider
component properties.- Theming properties for Slider components.
Switch
component properties.- Theming properties the Switch components.
- A task’s unique identifier.
- A static layout of a UI tree that describes a set of dynamic and static nodes.
- Holds the position of a cursor in a text
- Theming properties for Themes.
ThemeProvider
component properties.Tooltip
component properties.- Theming properties for Tooltip components.
- Data of a Touch event.
- Tracked state is state that can drive Selector state
- A mutable reference to tracked state
- Manage the lifecyle of a collection of transitions.
- The receiving end of an unbounded mpsc channel.
- The transmission end of an unbounded mpsc channel.
- Pass uniform values to a Shader.
- Holds a rendering hook callback that allows to render to the Canvas.
- Manage an editable content.
- Manage the focus operations of given Node
- A type created by the
use_ref
hook. See its documentation for more details. - State that is shared between components through the context system
- 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.
VirtualScrollView
component properties.- Data of a Wheel event.
- Configuration for a Window.
- Manager for a Window
Enums
- Animation mode and configuration.
- Identifies the current status of the Button.
- Group all the custom attribute types
- Current status of the DropdownItem.
- Current status of the Dropdown.
- Events emitted to the
UseEditable
. - How the editable content must behave.
- Gesture emitted by the
GestureArea
component. - Image status.
- Contains the best Root node candidate from where to start measuring
- An attribute of the TemplateNode, created at compile time
- A statically known node in a layout.
- Events for TextEditor
- Configure a
Transition
animation. - Stores the current state for a
Transition
. - Uniform value to be passed to a Shader.
Constants
Dark
themeLight
theme
Traits
- A value that can be converted into an attribute value
- 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 theProperties
trait automatically as guarantee that your memoization strategy is safe. - Common trait for editable texts
- A trait to allow results to be thrown upwards to the nearest Error Boundary
Functions
Accordion
component.AccordionBody
component.AccordionSummary
component.Button
component.- Draw anything inside of this canvas.
CursorArea
component.- Make the inner children draggable to other
DropZone
. - Elements from
DragZone
s can be dropped here. Dropdown
component.DropdownItem
component.Link
for external locations, e.g websites.- Create inline fragments using Component syntax.
GestureArea
component.- Graph component.
Input
component.Loader
component.NetworkImage
component.ScrollView
component.- Controlled
Slider
component. - Controlled
Switch
component. - Provides a
Theme
for all its children. Tooltip
componentVirtualScrollView
component.- Transform some bytes (e.g: raw image, raw svg) into attribute data
- This utility function launches the builder method so rsx! and html! macros can use the typed-builder pattern to initialize a component’s props.
- Run the app
- Calculate some chained operations with a given value. This value could be for example the width of a node’s parent area.
- Run animations.
- Run a group of animated transitions.
- Register a rendering hook to gain access to the Canvas.
- Consume some context in the tree, providing a sharable handle to the value
- Provide some context via the tree and return a reference to it
- Maintain a handle over a future that can be paused, resumed, and canceled.
- Get a handle to a coroutine higher in the tree
- Create a virtual text editor with it’s own cursor and rope.
- A hook that provides a future that executes after the hooks have been applied
- Create a focus manager for a node.
- A future that resolves to a value.
- Sync both the Focus shared state and the platform accessibility focus
- Provide the default
Theme
. - Create a focus provider.
- Provide a custom
Theme
. - A hook that provides a callback that executes if the dependencies change. This is useful to avoid running computation-expensive calculations even when the data doesn’t change.
- Subscribe to a Node layout changes.
- Silently read the latest layout from a Node.
- Creats a callback that will be run before the component is removed. This can be used to clean up side effects from the component (created with use_effect)
use_ref
is a key foundational hook for storing state in Dioxus.- This hook provides some relatively light ergonomics around shared state.
- Provide some state for components down the hierarchy to consume without having to drill props. See
use_shared_state
to consume the state - Store state between component renders.
- Subscribe to
Theme
changes. - Create a new tracked state. Tracked state is state that can drive Selector state
Type Definitions
- A wrapper around the
Scoped
object that contains a reference to theScopeState
and properties for a given component.
Attribute Macros
- Derive props for a component within the component definition.