LE a899f9f08e Remove broken links in `examples/README.md` (#4318) vor 2 Tagen
..
assets f865e3f559 Unify todomvc and todomvc-native examples (#4228) vor 3 Wochen
fullstack-auth f610c6b8c1 Implement Into<CaptureError> for the default server function error type (#4205) vor 6 Tagen
fullstack-desktop f610c6b8c1 Implement Into<CaptureError> for the default server function error type (#4205) vor 6 Tagen
fullstack-hello-world f610c6b8c1 Implement Into<CaptureError> for the default server function error type (#4205) vor 6 Tagen
fullstack-router f610c6b8c1 Implement Into<CaptureError> for the default server function error type (#4205) vor 6 Tagen
fullstack-streaming f610c6b8c1 Implement Into<CaptureError> for the default server function error type (#4205) vor 6 Tagen
fullstack-websockets f610c6b8c1 Implement Into<CaptureError> for the default server function error type (#4205) vor 6 Tagen
pwa 4c8e8567cf Fix the pwa example (#3664) vor 5 Monaten
tailwind 4276b9b23e feat: update examples to tailwind v4 (#3943) vor 4 Wochen
wgpu-texture 097bc1d1c8 Remove invalid global data attribute (#4270) vor 1 Woche
README.md a899f9f08e Remove broken links in `examples/README.md` (#4318) vor 2 Tagen
all_events.rs c9ca9f32ad Add Missing Fields From Scroll Event (#4022) vor 1 Monat
backgrounded_futures.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
calculator.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
calculator_mutable.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) vor 7 Monaten
clock.rs 79a2f023e7 Add the `onvisible` event handler to `Element` (#2911) vor 6 Monaten
context_api.rs 68ca4c3289 feat(examples): add Context API state management example (#3657) vor 4 Monaten
control_focus.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
counters.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
crm.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) vor 7 Monaten
custom_assets.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
custom_html.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
custom_menu.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
disabled.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
dog_app.rs ac3e33af46 cli json output, dx bundle fix, `dx serve --platform android`, race condition, drop ssg platform (#3186) vor 7 Monaten
dynamic_asset.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
errors.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
eval.rs 519ec9d294 Move the document trait into a separate crate (#3035) vor 8 Monaten
file_upload.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
flat_router.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
form.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
future.rs a899f9f08e Remove broken links in `examples/README.md` (#4318) vor 2 Tagen
generic_component.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
global.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
hash_fragment_state.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
hello_world.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
hydration.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
image_generator_openai.rs 519ec9d294 Move the document trait into a separate crate (#3035) vor 8 Monaten
link.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
logging.rs b6243d32a3 feat: Add logger to logger example (#3846) vor 2 Monaten
login_form.rs 487fa25dc8 fix: Use as_value() to properly serialize form values in login example (#3835) vor 2 Monaten
memo_chain.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
meta.rs 281087469a Move the history provider into the context (#3048) vor 7 Monaten
multiwindow.rs 25a64d97c0 Fixed the multiple window closing issue, where the two multiwindow examples weren't working. (#3499) vor 5 Monaten
nested_listeners.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
optional_props.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
overlay.rs 3da821d184 Provide `HotkeyState` on Global Shortcut Events (#3822) vor 2 Monaten
popup.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
query_segment_search.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
read_size.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) vor 7 Monaten
readme.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
reducer.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
resize.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) vor 7 Monaten
router.rs f43a8c69fa Fix typo (#4069) vor 1 Monat
router_resource.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
router_restore_scroll.rs 85b373deff feat(html): add scroll method to MountedData (#3722) vor 1 Monat
rsx_usage.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
scroll_to_offset.rs 85b373deff feat(html): add scroll method to MountedData (#3722) vor 1 Monat
scroll_to_top.rs c13fb06bfa fix(interpreter): missing scrollTo boolean return value (#3734) vor 4 Monaten
shortcut.rs 3da821d184 Provide `HotkeyState` on Global Shortcut Events (#3822) vor 2 Monaten
shorthand.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
signals.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
simple_list.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
simple_router.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
spread.rs 95976d9a17 Extend head components with global attributes (#2888) vor 8 Monaten
ssr.rs cfc119cce2 Update more examples, add css for more examples vor 1 Jahr
streams.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
suspense.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
svg.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
title.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
todomvc.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) vor 8 Monaten
video_stream.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
visible.rs 79a2f023e7 Add the `onvisible` event handler to `Element` (#2911) vor 6 Monaten
weather_app.rs 519ec9d294 Move the document trait into a separate crate (#3035) vor 8 Monaten
web_component.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
wgpu_child_window.rs a9468429d7 Fix the wgpu child window example (#3989) vor 2 Monaten
window_event.rs 519ec9d294 Move the document trait into a separate crate (#3035) vor 8 Monaten
window_focus.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
window_zoom.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten
xss_safety.rs 20d146d9bd Simplify the launch builder (#2967) vor 8 Monaten

README.md

Examples

These examples are fully-fledged mini Dioxus apps.

You can run them with cargo run --example EXAMPLE_NAME. Example:

cargo run --example hello_world

(Most of these examples are run through webview, so you don't need the Dioxus CLI installed)

Basic Features

hello_world - Most basic example

readme - Counter example from the Readme

custom_assets - Include images

custom_html - Customize wrapper HTML

eval - Evaluate JS expressions

RSX

rsx_usage - Demo of all RSX features

xss_safety - You can include text without worrying about injections by default

Props

optional_props - Optional props

CSS

tailwind - You can use a library for styling

Input Handling

all_events - Basic event handling demo

file upload - Handle uploading files

form - Handle form submission

nested_listeners - Nested handlers and bubbling

State Management

context_api - Cross-component state sharing via Context API

counters - Mapping a Signal<Vec<T>> into UI elements

futures - Handle async Rust with use_future, use_effect, and async event handlers

Async

login_form - Login endpoint example

suspense - Render placeholders while data is loading

SVG

svg

Server-side rendering

ssr - Rendering RSX server-side

hydration - Pre-rendering with hydration

Common Patterns

disabled - Disable buttons conditionally

errors - Handle errors with early return

Routing

flat_router - Basic, flat route example

router - Router example

link - Internal, external and custom links

Platform Features

window_event - Window decorations, fullscreen, minimization, etc.

window_zoom – Zoom in or out

popup - Create a popup window and send data back to the main window

Example Apps

calculator - Simple calculator

crm - Toy multi-page customer management app

dog_app - Accesses dog API

todomvc - Todo task list example