Evan Almloff 4c8e8567cf Fix the pwa example (#3664) il y a 5 mois
..
assets 79a2f023e7 Add the `onvisible` event handler to `Element` (#2911) il y a 6 mois
fullstack-auth fb7b1a30bf Use the launch builder instead of web launch in the fullstack auth example (#3640) il y a 5 mois
fullstack-desktop 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
fullstack-hello-world 7d490dc3bd feat: integrate dioxus-logger inline (#3302) il y a 6 mois
fullstack-router ac3e33af46 cli json output, dx bundle fix, `dx serve --platform android`, race condition, drop ssg platform (#3186) il y a 7 mois
fullstack-streaming 5ea0867a34 Fix the test_stream function running after the stream is closed (#3396) il y a 5 mois
pwa 4c8e8567cf Fix the pwa example (#3664) il y a 5 mois
tailwind 66a50240bc Update all docs links to 0.6, release 0.6 (#3225) il y a 6 mois
README.md 640a3e00af Remove the todo list from the examples readme (#3613) il y a 5 mois
all_events.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
backgrounded_futures.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
calculator.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
calculator_mutable.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) il y a 7 mois
clock.rs 79a2f023e7 Add the `onvisible` event handler to `Element` (#2911) il y a 6 mois
control_focus.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
counters.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
crm.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) il y a 7 mois
custom_assets.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
custom_html.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
custom_menu.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
disabled.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
dog_app.rs ac3e33af46 cli json output, dx bundle fix, `dx serve --platform android`, race condition, drop ssg platform (#3186) il y a 7 mois
dynamic_asset.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
errors.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
eval.rs 519ec9d294 Move the document trait into a separate crate (#3035) il y a 8 mois
file_upload.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
flat_router.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
form.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
future.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
generic_component.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
global.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
hash_fragment_state.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
hello_world.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
hydration.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
image_generator_openai.rs 519ec9d294 Move the document trait into a separate crate (#3035) il y a 8 mois
link.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
logging.rs 7d490dc3bd feat: integrate dioxus-logger inline (#3302) il y a 6 mois
login_form.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
memo_chain.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
meta.rs 281087469a Move the history provider into the context (#3048) il y a 7 mois
multiwindow.rs 25a64d97c0 Fixed the multiple window closing issue, where the two multiwindow examples weren't working. (#3499) il y a 5 mois
nested_listeners.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
optional_props.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
overlay.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
popup.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
query_segment_search.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
read_size.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) il y a 7 mois
readme.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
reducer.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
resize.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) il y a 7 mois
router.rs 9dc567255a Fix fullstack axum integration docs (#3263) il y a 6 mois
router_resource.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
rsx_usage.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
scroll_to_top.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
shortcut.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
shorthand.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
signals.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
simple_list.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
simple_router.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
spread.rs 95976d9a17 Extend head components with global attributes (#2888) il y a 8 mois
ssr.rs cfc119cce2 Update more examples, add css for more examples il y a 1 an
streams.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
suspense.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
svg.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
title.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
todomvc.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) il y a 8 mois
video_stream.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
visible.rs 79a2f023e7 Add the `onvisible` event handler to `Element` (#2911) il y a 6 mois
weather_app.rs 519ec9d294 Move the document trait into a separate crate (#3035) il y a 8 mois
web_component.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
wgpu.rs 1e8693a0e8 wgpu windows (fixed) (#3257) il y a 7 mois
window_event.rs 519ec9d294 Move the document trait into a separate crate (#3035) il y a 8 mois
window_focus.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
window_zoom.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois
xss_safety.rs 20d146d9bd Simplify the launch builder (#2967) il y a 8 mois

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

inputs - Input values

nested_listeners - Nested handlers and bubbling

textarea - Text area input

State Management

Async

login_form - Login endpoint example

suspense - Render placeholders while data is loading

tasks - Continuously run future

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

Example Apps

calculator - Simple calculator

crm - Toy multi-page customer management app

dog_app - Accesses dog API

todomvc - Todo task list example