Falk Woldmann 3c3256ec02 refactor: remove `once_cell` dependency and use `std::sync` equivalents (#4185) před 1 měsícem
..
assets 12c6938346 feat: inline dioxus-native from blitz (#3675) před 2 měsíci
fullstack-auth fb0c193aca Fix authentication example (#4145) před 1 měsícem
fullstack-desktop a1107de0c0 Update axum and many dependencies (#3825) před 2 měsíci
fullstack-hello-world a1107de0c0 Update axum and many dependencies (#3825) před 2 měsíci
fullstack-router a1107de0c0 Update axum and many dependencies (#3825) před 2 měsíci
fullstack-streaming 3c3256ec02 refactor: remove `once_cell` dependency and use `std::sync` equivalents (#4185) před 1 měsícem
fullstack-websockets 6b70ba7cd2 Fix websocket server functions and add an example (#4107) před 1 měsícem
pwa 4c8e8567cf Fix the pwa example (#3664) před 5 měsíci
tailwind 4d3d55a7a3 CLI self-updater, warn on version mismatch, direct install.sh option, androidmanifest and info.plist customization, bump to 0.7-alpha.0 (#4095) před 1 měsícem
README.md 68ca4c3289 feat(examples): add Context API state management example (#3657) před 4 měsíci
all_events.rs c9ca9f32ad Add Missing Fields From Scroll Event (#4022) před 1 měsícem
backgrounded_futures.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
calculator.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
calculator_mutable.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) před 7 měsíci
clock.rs 79a2f023e7 Add the `onvisible` event handler to `Element` (#2911) před 6 měsíci
context_api.rs 68ca4c3289 feat(examples): add Context API state management example (#3657) před 4 měsíci
control_focus.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
counters.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
crm.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) před 7 měsíci
custom_assets.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
custom_html.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
custom_menu.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
disabled.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
dog_app.rs ac3e33af46 cli json output, dx bundle fix, `dx serve --platform android`, race condition, drop ssg platform (#3186) před 7 měsíci
dynamic_asset.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
errors.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
eval.rs 519ec9d294 Move the document trait into a separate crate (#3035) před 8 měsíci
file_upload.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
flat_router.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
form.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
future.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
generic_component.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
global.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
hash_fragment_state.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
hello_world.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
hydration.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
image_generator_openai.rs 519ec9d294 Move the document trait into a separate crate (#3035) před 8 měsíci
link.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
logging.rs b6243d32a3 feat: Add logger to logger example (#3846) před 2 měsíci
login_form.rs 487fa25dc8 fix: Use as_value() to properly serialize form values in login example (#3835) před 2 měsíci
memo_chain.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
meta.rs 281087469a Move the history provider into the context (#3048) před 7 měsíci
multiwindow.rs 25a64d97c0 Fixed the multiple window closing issue, where the two multiwindow examples weren't working. (#3499) před 5 měsíci
nested_listeners.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
optional_props.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
overlay.rs 3da821d184 Provide `HotkeyState` on Global Shortcut Events (#3822) před 2 měsíci
popup.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
query_segment_search.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
read_size.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) před 7 měsíci
readme.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
reducer.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
resize.rs ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214) před 7 měsíci
router.rs f43a8c69fa Fix typo (#4069) před 1 měsícem
router_resource.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
router_restore_scroll.rs 85b373deff feat(html): add scroll method to MountedData (#3722) před 1 měsícem
rsx_usage.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
scroll_to_offset.rs 85b373deff feat(html): add scroll method to MountedData (#3722) před 1 měsícem
scroll_to_top.rs c13fb06bfa fix(interpreter): missing scrollTo boolean return value (#3734) před 4 měsíci
shortcut.rs 3da821d184 Provide `HotkeyState` on Global Shortcut Events (#3822) před 2 měsíci
shorthand.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
signals.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
simple_list.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
simple_router.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
spread.rs 95976d9a17 Extend head components with global attributes (#2888) před 8 měsíci
ssr.rs cfc119cce2 Update more examples, add css for more examples před 1 rokem
streams.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
suspense.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
svg.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
title.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
todomvc-native.rs 12c6938346 feat: inline dioxus-native from blitz (#3675) před 2 měsíci
todomvc.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) před 8 měsíci
video_stream.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
visible.rs 79a2f023e7 Add the `onvisible` event handler to `Element` (#2911) před 6 měsíci
weather_app.rs 519ec9d294 Move the document trait into a separate crate (#3035) před 8 měsíci
web_component.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
wgpu_child_window.rs a9468429d7 Fix the wgpu child window example (#3989) před 2 měsíci
window_event.rs 519ec9d294 Move the document trait into a separate crate (#3035) před 8 měsíci
window_focus.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
window_zoom.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci
xss_safety.rs 20d146d9bd Simplify the launch builder (#2967) před 8 měsíci

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

context_api - Cross-component state sharing via Context API

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