Evan Almloff 281087469a Move the history provider into the context (#3048) пре 7 месеци
..
assets 983fcfc616 Chore: hoist example projects for discoverability (#2959) пре 9 месеци
fullstack-auth 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
fullstack-desktop 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
fullstack-hello-world 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
fullstack-router 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
fullstack-streaming 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
mobile_demo 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
pwa 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
ssg-github-pages 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
ssg-router 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
ssg-simple 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
tailwind 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
README.md c2b131f249 File explorer example moved from `examples` to `example-projects`. (#3009) пре 9 месеци
all_events.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
backgrounded_futures.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
calculator.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
calculator_mutable.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
clock.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
control_focus.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
counters.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
crm.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
custom_assets.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
custom_html.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
custom_menu.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
disabled.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
dog_app.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
dynamic_asset.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
errors.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
eval.rs 519ec9d294 Move the document trait into a separate crate (#3035) пре 8 месеци
file_upload.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
flat_router.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
form.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
future.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
generic_component.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
global.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
hash_fragment_state.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
hello_world.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
hydration.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
image_generator_openai.rs 519ec9d294 Move the document trait into a separate crate (#3035) пре 8 месеци
link.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
login_form.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
memo_chain.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
meta.rs 281087469a Move the history provider into the context (#3048) пре 7 месеци
multiwindow.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
nested_listeners.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
optional_props.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
overlay.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
popup.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
query_segment_search.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
read_size.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
readme.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
reducer.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
resize.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
router.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
router_resource.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
rsx_usage.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
scroll_to_top.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
shortcut.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
shorthand.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
signals.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
simple_list.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
simple_router.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
spread.rs 95976d9a17 Extend head components with global attributes (#2888) пре 8 месеци
ssr.rs cfc119cce2 Update more examples, add css for more examples пре 1 година
streams.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
suspense.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
svg.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
title.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
todomvc.rs 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779) пре 8 месеци
video_stream.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
weather_app.rs 519ec9d294 Move the document trait into a separate crate (#3035) пре 8 месеци
web_component.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
window_event.rs 519ec9d294 Move the document trait into a separate crate (#3035) пре 8 месеци
window_focus.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
window_zoom.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци
xss_safety.rs 20d146d9bd Simplify the launch builder (#2967) пре 8 месеци

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

TODO

Missing Features

  • Fine-grained reactivity
  • Refs - imperative handles to elements
  • Function-driven children: Pass functions to make VNodes

Missing examples

  • Shared state
  • Root-less element groups
  • Custom elements
  • Component Children: Pass children into child components
  • Render To string: Render a mounted virtualdom to a string
  • Testing and Debugging