<h1 align="center">Lumen UI · Dioxus</h1>
<p align="center">Rust components · Web, desktop, mobile, and Dioxus Native · Shared Lumen CSS</p>
<p align="center">
<a href="https://crates.io/crates/lumen-dioxus"><img src="https://img.shields.io/crates/v/lumen-dioxus?style=flat-square" alt="crates.io version"></a>
<a href="https://docs.rs/lumen-dioxus"><img src="https://img.shields.io/docsrs/lumen-dioxus?style=flat-square" alt="docs.rs"></a>
<a href="https://github.com/santi020k/lumen/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-13967e?style=flat-square" alt="MIT license"></a>
</p>
**Crate:** `lumen-dioxus` · **Dioxus:** 0.7 · **Rust:** 1.88 or later
`lumen-dioxus` brings every [Lumen](https://lumen.santi020k.com) component to
[Dioxus](https://dioxuslabs.com). The components render the same classes, attributes, and ARIA as
`@santi020k/lumen-react` and share Lumen's stylesheet, so an app looks the same in a browser, in a
desktop or mobile webview, and in **Dioxus Native**, which draws HTML and CSS with the
[Blitz](https://github.com/DioxusLabs/blitz) engine instead of a webview. Interactions run in Rust,
so they also work where there is no JavaScript.
**On this page:** [Install](#install) · [Quick start](#quick-start) · [Renderers](#renderers) ·
[Theming](#theming) · [Icons](#icons) · [Components](#components) ·
[Behavior and accessibility](#behavior-and-accessibility) ·
[Dioxus Native support](#dioxus-native-support) · [Versioning](#versioning) ·
[Development](#development)
## Install
```sh
cargo add lumen-dioxus
```
or in `Cargo.toml`:
```toml
[dependencies]
dioxus = { version = "0.7", features = ["web"] }
lumen-dioxus = "6.0"
```
Pick the renderer in your app's own `dioxus` dependency: `web`, `desktop`, `mobile`, or `native`.
`lumen-dioxus` only depends on Dioxus's component, HTML, signal, hook, and document APIs, so it
works with any of them. Optional features:
| Feature | Default | What it adds |
| ------------- | ------- | ----------------------------------------------------------------------------------- |
| `icon-names` | Yes | Runtime icon names (`Icon { name: "trash" }`); links the full Lucide catalog |
| `brand-icons` | No | Font Awesome Free brand icons, as `icons::brand` constants and `brand:<name>` names |
## Quick start
Render `LumenStyles` once near the root, wrap the app in `LumenTheme`, and use the components from
the prelude:
```rust
use dioxus::prelude::*;
use lumen_dioxus::prelude::*;
fn main() {
dioxus::launch(App);
}
#[component]
fn App() -> Element {
let mut notifications = use_signal(|| true);
rsx! {
LumenStyles {}
LumenTheme {
Card {
CardHeader {
CardTitle { "Workspace plan" }
CardDescription { "Shared libraries and audit logs." }
}
CardContent {
label {
Switch {
checked: notifications(),
onchange: move |next| notifications.set(next),
}
"Notifications"
}
}
CardFooter {
Button { variant: ButtonVariant::Secondary, "Compare plans" }
Button { onclick: move |_| {}, "Upgrade" }
}
}
}
}
}
```
`LumenStyles` embeds the complete stylesheet, including the default fonts, in a `<style>` element.
If you load styles another way, `lumen_dioxus::LUMEN_CSS` holds the same CSS as a string.
Every component also accepts `class` (appended after the Lumen classes) and any attribute its root
HTML element accepts, such as `id`, `aria_label`, or `r#for`. Props follow the React adapter in
snake case: `default_value`, `on_value_change`, and so on.
## Renderers
| Renderer | Your `dioxus` features | Run | Notes |
| ---------------- | ---------------------- | ------------------------------------------- | ----------------------------------------------------------------- |
| Web | `["web"]` | `dx serve --platform web` | Full support |
| Desktop | `["desktop"]` | `dx serve --platform desktop` | System webview; full support |
| Mobile | `["mobile"]` | `dx serve --platform ios` or `android` | System webview; full support |
| Dioxus Native | `["native"]` | `dx serve --platform native` or `cargo run` | Blitz engine; see [Dioxus Native support](#dioxus-native-support) |
| Server rendering | `dioxus-ssr` | `dioxus_ssr::render_element(...)` | Static HTML, for sites and emails |
The crate ships runnable examples that share one gallery page with every component:
```sh
cargo run --example gallery --features native-example # Dioxus Native
cargo run --example desktop --features desktop-example # desktop webview
dx serve --example web --features web-example --platform web
cargo run --example ssr > lumen.html # server rendering
```
For a smaller Native preview of localized numbers and nested chart themes, run from
`packages/dioxus` with build output outside the checkout:
```sh
CARGO_TARGET_DIR=/tmp/lumen-dioxus-target cargo run --example platform_gaps --features native-example
```
## Theming
`LumenTheme` sets the color scheme and appearance preset for its children, using the same
`data-theme`, `data-lumen-scheme`, and `data-lumen-preset` attributes as every Lumen adapter, and
paints the canvas background, text color, and font. Nest it to theme one section differently.
```rust
let mut scheme = use_signal(|| LumenScheme::Light);
rsx! {
LumenStyles {}
LumenTheme { scheme: scheme(), preset: LumenPreset::Paper,
Button { onclick: move |_| scheme.set(scheme().toggled()), "Toggle dark mode" }
}
}
```
Presets: `Default`, `Classic` (the Lumen 5 look), `Paper`, `Luminous`, `Voltage`, `Signal`,
`Studio` (dense and quiet, for pro tools), and `Aura` (a violet-to-blue gradient on filled brand
surfaces, brand-tinted glow elevation, and Geist type, for AI products and developer tools). Glass
surfaces are opt-in per component with `glass`.
Aura's gradient is a plain `linear-gradient` layered over the solid brand color, so Dioxus Native
draws it too. A renderer that can't draw the gradient shows that solid color instead.
Lumen 6 retires the `Field`, `Clay`, and `KinJar` presets, and `LumenPreset::Studio` replaces the
color-only Lumen 5 `Studio` preset. To recreate a retired preset, generate CSS with
`@santi020k/lumen-core` in a build step:
`exportLumenPaletteCss('clay', createLumenPalette(lumenPaletteStarters.clay.seeds))`. The starters
are starting points based on the retired themes. Load the CSS after `LumenStyles` and set
`"data-lumen-palette": "clay"` on `LumenTheme`. For KinJar, pair the `kinjar` palette with
`LumenPreset::Luminous`. For a look closer to the Lumen 5 Studio preset, pair the `studio` palette
with `LumenPreset::Default`.
On Dioxus Native or another CSS engine without `@scope`, repeat `data-lumen-palette` on each nested
scheme or preset boundary; the direct palette rule works without scoped CSS support.
## Icons
The complete [Lucide](https://lucide.dev) catalog is available as constants in
`lumen_dioxus::icons::lucide`. Pass a constant so only the icons you use reach the binary, or
resolve a name at runtime:
```rust
rsx! {
Icon { icon: &icons::lucide::SEARCH, label: "Search" }
Icon { name: "trash" }
}
```
Unnamed icons are decorative and hidden from assistive technology. With the `brand-icons` feature,
`Icon { name: "brand:github" }` resolves Font Awesome Free brand icons.
Runtime names come from the default `icon-names` feature, which links the whole catalog (about
360 KB) into any binary that renders an `Icon`. Apps that only pass constants, for example to keep
a web bundle small, can drop it:
```toml
lumen-dioxus = { version = "6.0", default-features = false }
```
## Number localization
`FormattedNumber`, `ImageComparison` value text, and `MediaViewport` zoom text honor BCP 47
`locale` values on every renderer, including Native. Examples include `es-CO` for Colombian
currency and `ar-EG-u-nu-latn` for an Arabic locale with Latin digits. Numbers retain their
machine-readable value while grouping, digits, currency placement, units, compact text, and
screen-reader long readings use the requested locale.
Omitted, malformed, oversized, and unsupported language tags fall back to `en`; supported
regional tags use ICU's locale fallback. Invalid numeric input or unavailable formatting data
uses the component's `fallback` instead of mislabeling English text as localized output.
`currency_name: Never` retains the visible reading, `Always` names the currency, and `Auto`
checks the symbol actually shown in that locale. `FormattedDate`'s optional built-in date/time
formatting remains English/UTC; applications can supply localized date text as children.
The implementation uses pure-Rust [ICU4X 2.4](https://icu4x.unicode.org/) with Rust 1.88 unchanged.
Currency and compact APIs are experimental and pinned exactly (`icu_experimental = 0.7.0`);
their types are private to Lumen. Upgrade those packages together and review the independent
Intl reference fixtures before release. ICU supplies compiled locale data; generated Unicode
CLDR unit patterns supplement unit categories not covered by ICU4X's formatter yet. Those
patterns cover 657 locale records, deduplicated to 187 tables (about 1.8 MB of Rust source).
This source size is not a measured binary or application bundle increase.
Regenerate with `node scripts/generate-dioxus-unit-locales.mjs` and
`node scripts/generate-dioxus-number-locales-fixtures.mjs` from the repository root. Both accept
`--check` to compare without writing. The unit generator downloads the SHA-512-pinned CLDR 49
archive and therefore needs network access even with `--check`. Both generators require
exactly Node 24.21.0 with ICU 78.3 and reject other generator runtimes before reading,
fetching, or writing data, including in `--check` mode; the application's supported runtimes are
unchanged. Neither requires installing a JavaScript package.
Redistributed locale data is covered by [LOCALE_NOTICES.md](LOCALE_NOTICES.md).
## Components
`lumen-dioxus` covers every component in the Lumen catalog. Each group links to its reference, with
props, a compiled example, and renderer notes. The same examples appear as the **Dioxus** tab on
every [component page](https://lumen.santi020k.com/docs/components) of the documentation site.
BarChart and LineChart default to matching 640 × 240 plots. Both accept `width` and `height`;
RangeChart and ComboChart accept the same dimensions with 640 × 320 defaults. These coordinate
frames scale responsively; pass `width: 480.0` to retain the earlier bar-chart proportions.
Value gutters account for compact 22px labels and custom formatter callbacks. Line and combo
series support `.with_dash(ChartSeriesDash::Dashed)` (`Solid` and `Dotted` are also available);
leave `dash` unset to retain automatic series patterns. Direct `ChartSeries` literals need the
new `dash: None` field. Dash patterns require a CSS-capable renderer; Native Line/Combo styling
retains the SVG limitations documented below.
<!-- BEGIN:generated-components -->
**[Charts](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md)** (18): [`Chart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#chart), [`Sparkline`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#sparkline), [`BarChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#barchart), [`LineChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#linechart), [`PieChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#piechart), [`ScatterChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#scatterchart), [`Heatmap`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#heatmap), [`RangeChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#rangechart), [`ComboChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#combochart), [`CalendarHeatmap`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#calendarheatmap), [`FunnelChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#funnelchart), [`BoxPlot`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#boxplot), [`BulletChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#bulletchart), [`LollipopChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#lollipopchart), [`DumbbellChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#dumbbellchart), [`Histogram`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#histogram), [`WaterfallChart`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#waterfallchart), [`ChartMotion`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/charts.md#chartmotion)
**[Content](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md)** (32): [`Agenda`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#agenda), [`Attachment`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#attachment), [`AttachmentList`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#attachmentlist), [`AttachmentPreview`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#attachmentpreview), [`Bubble`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#bubble), [`Code`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#code), [`CodeTabs`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#codetabs), [`CoverImage`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#coverimage), [`DeviceFrame`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#deviceframe), [`Eyebrow`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#eyebrow), [`FloatingBadge`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#floatingbadge), [`FormattedDate`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#formatteddate), [`FormattedNumber`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#formattednumber), [`Image`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#image), [`ImageComparison`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#imagecomparison), [`InstallCommand`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#installcommand), [`Item`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#item), [`Kbd`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#kbd), [`Marker`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#marker), [`MediaFilmstrip`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#mediafilmstrip), [`MediaThumbnail`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#mediathumbnail), [`MediaViewport`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#mediaviewport), [`Message`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#message), [`Note`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#note), [`Pill`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#pill), [`QRCode`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#qrcode), [`Schedule`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#schedule), [`SecretValue`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#secretvalue), [`Terminal`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#terminal), [`Testimonial`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#testimonial), [`TestimonialGroup`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#testimonialgroup), [`Typography`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/content.md#typography)
**[Data components](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md)** (33): [`Stat`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#stat), [`StatLabel`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#statlabel), [`StatValue`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#statvalue), [`StatDescription`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#statdescription), [`StatIcon`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#staticon), [`StatTrend`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#stattrend), [`StatGroup`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#statgroup), [`Meter`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#meter), [`Rating`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#rating), [`Timeline`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#timeline), [`Timer`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#timer), [`Descriptions`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#descriptions), [`DescriptionItem`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#descriptionitem), [`DescriptionTerm`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#descriptionterm), [`DescriptionDetail`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#descriptiondetail), [`Table`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#table), [`DataTable`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#datatable), [`Tree`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#tree), [`TreeGrid`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#treegrid), [`VirtualList`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#virtuallist), [`ReorderableList`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#reorderablelist), [`ChangeSummary`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#changesummary), [`FilterBar`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#filterbar), [`ThemeBuilder`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#themebuilder), [`WorldMap`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#worldmap), [`ApprovalCard`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#approvalcard), [`PromptComposer`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#promptcomposer), [`SourceCitation`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#sourcecitation), [`StreamMessage`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#streammessage), [`ToolActivity`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#toolactivity), [`Reasoning`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#reasoning), [`MessageActions`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#messageactions), [`PromptSuggestions`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/data.md#promptsuggestions)
**[Foundation components](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md)** (23): [`Button`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#button), [`Card`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#card), [`CardHeader`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#cardheader), [`CardTitle`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#cardtitle), [`CardDescription`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#carddescription), [`CardContent`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#cardcontent), [`CardFooter`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#cardfooter), [`Badge`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#badge), [`Alert`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#alert), [`Progress`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#progress), [`Spinner`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#spinner), [`Avatar`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#avatar), [`Separator`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#separator), [`Label`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#label), [`Input`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#input), [`Textarea`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#textarea), [`Field`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#field), [`FieldError`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#fielderror), [`Checkbox`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#checkbox), [`Switch`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#switch), [`Tabs`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#tabs), [`Icon`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#icon), [`LumenTheme`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/foundation.md#lumentheme)
**[Inputs](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md)** (24): [`AmountField`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#amountfield), [`Autocomplete`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#autocomplete), [`CharacterCount`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#charactercount), [`CheckboxCard`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#checkboxcard), [`CheckboxGroup`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#checkboxgroup), [`Combobox`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#combobox), [`ErrorSummary`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#errorsummary), [`Form`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#form), [`InlineEdit`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#inlineedit), [`InputGroup`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#inputgroup), [`InputOTP`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#inputotp), [`ListBox`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#listbox), [`Mentions`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#mentions), [`NativeSelect`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#nativeselect), [`NumberField`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#numberfield), [`PasswordField`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#passwordfield), [`RadioCard`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#radiocard), [`RadioGroup`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#radiogroup), [`SearchField`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#searchfield), [`Segmented`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#segmented), [`Select`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#select), [`SettingsRow`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#settingsrow), [`Slider`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#slider), [`TagGroup`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/inputs.md#taggroup)
**[Layout components](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md)** (24): [`Accordion`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#accordion), [`AspectRatio`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#aspectratio), [`Collapsible`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#collapsible), [`Container`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#container), [`Direction`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#direction), [`FeatureGrid`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#featuregrid), [`Hero`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#hero), [`PageHeader`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#pageheader), [`Prose`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#prose), [`SectionHeader`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#sectionheader), [`Stack`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#stack), [`Grid`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#grid), [`Steps`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#steps), [`Toolbar`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#toolbar), [`VisuallyHidden`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#visuallyhidden), [`Watermark`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#watermark), [`Affix`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#affix), [`ScrollArea`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#scrollarea), [`Resizable`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#resizable), [`GradientDivider`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#gradientdivider), [`Carousel`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#carousel), [`KanbanBoard`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#kanbanboard), [`KanbanColumn`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#kanbancolumn), [`MessageScroller`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/layout.md#messagescroller)
**[Motion components](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md)** (16): [`Particles`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#particles), [`ScrollReveal`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#scrollreveal), [`RevealGroup`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#revealgroup), [`VisualEffect`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#visualeffect), [`Marquee`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#marquee), [`Parallax`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#parallax), [`ViewProgress`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#viewprogress), [`MotionGroup`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#motiongroup), [`TextRoll`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#textroll), [`SplitText`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#splittext), [`AnimatedNumber`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#animatednumber), [`Backdrop`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#backdrop), [`Graphic`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#graphic), [`AnimatedLogo`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#animatedlogo), [`AnimatedPortrait`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#animatedportrait), [`Illustration`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/motion.md#illustration)
**[Navigation](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md)** (31): [`AppHeader`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#appheader), [`BackToTop`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#backtotop), [`Breadcrumb`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#breadcrumb), [`ButtonGroup`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#buttongroup), [`ButtonLink`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#buttonlink), [`Command`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#command), [`ContextNavigation`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#contextnavigation), [`CopyButton`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#copybutton), [`HeadingAnchor`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#headinganchor), [`LanguageToggle`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#languagetoggle), [`Link`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#link), [`LoadMore`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#loadmore), [`Menubar`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#menubar), [`NavigationMenu`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#navigationmenu), [`PageNav`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#pagenav), [`Pagination`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#pagination), [`SelectionBar`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#selectionbar), [`ShareLinks`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#sharelinks), [`Sidebar`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#sidebar), [`SidebarItem`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#sidebaritem), [`SidebarTrigger`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#sidebartrigger), [`SiteFooter`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#sitefooter), [`SiteHeader`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#siteheader), [`SkipLink`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#skiplink), [`SpeedDial`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#speeddial), [`Stepper`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#stepper), [`Anchor`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#anchor), [`SwipeCard`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#swipecard), [`ThemeToggle`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#themetoggle), [`Toggle`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#toggle), [`ToggleGroup`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/navigation.md#togglegroup)
**[Overlay components](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md)** (28): [`Callout`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#callout), [`Empty`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#empty), [`ErrorState`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#errorstate), [`StatusDot`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#statusdot), [`Skeleton`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#skeleton), [`RouteProgress`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#routeprogress), [`ScrollProgress`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#scrollprogress), [`Toast`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#toast), [`ToastViewport`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#toastviewport), [`Dialog`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#dialog), [`DialogHeader`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#dialogheader), [`DialogTitle`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#dialogtitle), [`DialogBody`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#dialogbody), [`DialogFooter`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#dialogfooter), [`DialogClose`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#dialogclose), [`DialogForm`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#dialogform), [`AlertDialog`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#alertdialog), [`Sheet`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#sheet), [`Drawer`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#drawer), [`SearchDialog`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#searchdialog), [`SearchDialogTrigger`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#searchdialogtrigger), [`DropdownMenu`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#dropdownmenu), [`ContextMenu`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#contextmenu), [`Popover`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#popover), [`HoverCard`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#hovercard), [`Tooltip`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#tooltip), [`Popconfirm`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#popconfirm), [`Tour`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/overlays.md#tour)
**[Pickers and structured editors](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md)** (11): [`Calendar`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#calendar), [`ColorPicker`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#colorpicker), [`DatePicker`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#datepicker), [`DateRangePicker`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#daterangepicker), [`TimeField`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#timefield), [`FileUpload`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#fileupload), [`Transfer`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#transfer), [`Cascader`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#cascader), [`TreeSelect`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#treeselect), [`PhoneInput`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#phoneinput), [`RichTextEditor`](https://github.com/santi020k/lumen/blob/main/packages/dioxus/docs/components/pickers.md#richtexteditor)
<!-- END:generated-components -->
## Behavior and accessibility
- **Controlled or uncontrolled.** Stateful components accept a controlled value (`value`, `checked`,
`open`) or a default (`default_value`, `default_checked`, `default_open`) and report changes
through `on_value_change`-style handlers, like the React adapter.
- **Keyboard.** Tabs, menus, listboxes, grids, sliders, and trees follow the WAI-ARIA patterns:
arrow keys, Home and End, typeahead where Lumen web has it, and Escape to dismiss. Keyboard paths
run in Rust on every renderer.
- **Focus.** On web, desktop, and mobile, roving focus moves DOM focus and dialogs and menus move
focus in and back to their trigger. Dioxus Native does not report mounted elements yet, so there
the roving tab stop updates but DOM focus stays where the user put it.
- **Ids.** Components that link labels, descriptions, and panels generate stable ids with
`hooks::use_unique_id`; pass your own `id` to control them. Generated ids come from a process-wide
counter, so server rendering supports static HTML but not hydrating that HTML in the browser
(Dioxus fullstack); pass explicit ids where a page must hydrate.
- **Forms.** Custom controls render hidden inputs for their `name` and `value`, so native form
submission keeps working.
- **Floating panels.** Popovers, menus, selects, and tooltips render in the component tree with
Lumen's absolute-positioning fallback. While a panel is open, a transparent `DismissLayer` closes
it on an outside click.
Building your own components? `lumen_dioxus::hooks` (`use_unique_id`, `use_controllable`),
`lumen_dioxus::overlay` (`DismissLayer`, `is_escape`, `focus_element`), and
`lumen_dioxus::time::sleep` are public.
## Dioxus Native support
Dioxus Native renders Lumen's HTML and CSS with Blitz, without a webview. Every component renders,
and clicks, keys, and text input drive the same Rust state as on the web. Blitz 0.2, which ships
with Dioxus Native 0.7, has these limits:
- **Events and focus.** Blitz reports click, mouse, keyboard, and input events only: no pointer,
hover, focus/blur, scroll, wheel, resize, double-click, submit, or mounted events. Hover cards
can toggle on click; tooltips require a controlled `open` prop. Programmatic focus and focus
restoration remain unavailable without mounted element handles. Drags (Resizable, Kanban, WorldMap, SwipeCard) use
mouse events with approximate sizes, because elements cannot be measured; scroll-linked
components (ScrollProgress, BackToTop, Anchor, Parallax, ViewProgress, MessageScroller, and
VirtualList windowing) take controlled values or settle in a static state.
- **SVG.** Blitz draws inline SVG as an image, so Lumen's CSS does not reach it. `BarChart`,
`PieChart`, and `Sparkline` emit generated literal SVG paint attributes when the existing
capability probe detects Native, with explicit SVG dimensions and fallback sizing for Bar.
Pie keeps its canonical responsive CSS sizing.
Their colors follow the nearest `LumenTheme`, including scheme/preset changes and nested
themes; without a provider they use Default/light. The generated paints do not read custom CSS
palettes, responsive rules, or animation effects. Other SVG charts and generic icons still lack
inherited paint colors, and SVG marks cannot be clicked. Chart legends, data tables, and the
HTML-based charts (FunnelChart, BoxPlot, BulletChart, LollipopChart, DumbbellChart) work fully.
- **Check controls.** Checkbox, Switch, and the controls built on them render as
`<button role="checkbox">` and `<button role="switch">` with `aria-checked` on every renderer,
because Blitz ignores `appearance: none` on native inputs. A named, checked control renders a
hidden input so forms still submit its value.
- **Web platform APIs.** The clipboard, scroll observers, `contenteditable`, filling another
element (the PromptSuggestions `target`), JavaScript regular expressions (the InlineEdit
`pattern`), document keyboard shortcuts (the SearchDialog Ctrl+K and Command+K), and Rive
animations have no Native equivalent. Components that need them use `dioxus::document::eval` on
web, desktop, and mobile, and fall back to a documented state on Native: for example, CopyButton
calls your `on_copy` handler instead, PromptSuggestions leaves the composer to your
`on_suggestion_select` handler, InlineEdit leaves `pattern` unchecked, and SearchDialog opens
only from its trigger.
- **Native widgets.** Blitz has no `<select>` popup, so `NativeSelect` does not open there; use
`Select`. Color and time inputs fall back to text fields, and FileUpload needs Blitz's file input
support and has no drag and drop.
- **Dismissal.** Blitz lays out `position: fixed` like `absolute`, so a `DismissLayer` covers only
the nearest positioned ancestor and some outside clicks may not close a panel. Use the panel's
close controls and documented keyboard paths; focus trapping, focus restoration, document-wide
listeners, and top-layer positioning still depend on upstream renderer support.
- **Rendering.** Placeholders do not show, text truncation clips without an ellipsis, glass
(`glass`) needs `backdrop-filter`, which Blitz draws only with its Skia renderer, and tab list
borders, checkbox marks, and switch thumbs need the newer Blitz on the Dioxus 0.8 line.
- **Brand gradients.** Aura's gradient is a plain three-stop `linear-gradient`, and its glow
elevation is made of box shadows; Blitz draws both. A renderer that can't draw the gradient shows
the solid brand color underneath.
Each component's reference lists its renderer notes.
## Versioning
`lumen-dioxus` shares the Lumen major with every published Lumen package and follows semantic
versioning within it ([shared major versions](https://github.com/santi020k/lumen/blob/main/CONTRIBUTING.md#shared-major-versions)).
6.x targets Dioxus 0.7 and Lumen 6 styles; a move to a new Dioxus line waits for the next Lumen
major. The minimum supported Rust version is 1.88. See the [changelog](https://github.com/santi020k/lumen/blob/main/packages/dioxus/CHANGELOG.md).
## Development
From the repository root:
```sh
pnpm run generate:dioxus-css # rebuild assets/lumen.css from the Lumen stylesheet
pnpm run generate:dioxus-icons # rebuild the icon constants and notices
pnpm run generate:dioxus-fixtures # rebuild lumen-react markup fixtures (needs built packages)
pnpm run generate:dioxus-docs # rebuild doc example tests, site data, and this component list
pnpm run check:dioxus-coverage # every registry component has a Dioxus component
```
From `packages/dioxus`:
```sh
cargo test --features brand-icons # unit, parity, documentation, and doc tests
cargo clippy --all-targets -- -D warnings
```
Inside the Lumen repository, point `CARGO_TARGET_DIR` outside the checkout (or run `cargo clean`
before committing): the repository's lint hook stops at its directory scan limit when
`packages/dioxus/target` grows large.
`assets/lumen.css` and the icon modules are generated; edit the canonical sources instead. The
parity tests in `tests/parity_*.rs` render each component with Dioxus SSR and compare it with the
lumen-react fixture, so both adapters keep producing the markup Lumen's CSS expects. Releases
follow the [release runbook](https://github.com/santi020k/lumen/blob/main/docs/dioxus-release.md).
## License
[MIT](https://github.com/santi020k/lumen/blob/main/LICENSE). The bundled fonts use the SIL Open
Font License ([FONT_NOTICES.md](https://github.com/santi020k/lumen/blob/main/packages/dioxus/FONT_NOTICES.md))
and the icons use the ISC and CC BY 4.0 licenses
([THIRD_PARTY_NOTICES.md](https://github.com/santi020k/lumen/blob/main/packages/dioxus/THIRD_PARTY_NOTICES.md)).
Made by [Santiago Molina](https://santi020k.com).