Skip to main content

Crate dx_utils

Crate dx_utils 

Source
Expand description

Utility components and functions for Dioxus fullstack apps.

§Features

  • server — enables server-side functionality (HTTP headers via FullstackContext). This feature is typically activated by your app’s server feature.

§Functions

  • redirect_external — redirect to an external URL, works correctly during both SSR and client-side navigation.

§Components

  • LocalTime — renders an RFC 3339 datetime in the browser’s local timezone. Shows UTC during SSR; converts client-side after hydration via js_sys::Date.

Re-exports§

pub use LocalTime_completions::Component::LocalTime;

Structs§

LocalTimeProps
Properties for the LocalTime component.

Functions§

LocalTime
Renders an RFC 3339 datetime as a <time> element that displays in the browser’s local timezone after hydration. During SSR, shows UTC.
redirect_external
Redirect to an external URL. Works correctly during both SSR (server-side rendering) and client-side navigation.