docs.rs failed to build domi-egui-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
domi-egui
Native Rust widget library for the 15 DOMicile HTML primitives — leaves plus 5 composites — backed by egui 0.32.
Install
[]
= { = "crates/domi-egui" }
= "0.32"
Usage
use ;
use ;
Widgets
| Widget | Form | Variant options | Size options | Notes |
|---|---|---|---|---|
domi_button |
leaf | Primary | Ghost | Danger |
Sm | Lg |
on_click: Option<Box<dyn FnMut()>> |
domi_card |
leaf | — | Sm | Lg |
header / footer optional slots |
domi_alert |
leaf | Info | Success | Warning | Danger |
— | — |
domi_badge |
leaf | Primary | Success | Warning | Danger |
— | — |
domi_input |
leaf | error: bool |
Sm | Lg |
kind: InputKind (Text/Email/Password/Number/Search/Tel/Url) |
domi_select |
leaf | error: bool |
Sm | Lg |
options: &[&str] + selected: &mut String |
domi_checkbox |
leaf | — | — | checked: &mut bool |
domi_radio |
leaf | — | — | name: &str group, selected: bool |
domi_tooltip |
leaf | — | — | label, content strings |
domi_toast |
leaf | — | — | position chosen by caller (Ui placement) |
domi_table |
composite | — | — | headers, rows |
domi_nav |
composite | — | — | brand, links, actions |
domi_tabs |
composite | — | — | caller-owned TabsState |
domi_modal |
composite | — | — | caller-owned &mut bool open (focus trap stub; phase 4 swap-in for egui::ModalManager) |
domi_form |
composite | — | — | FormRow::Row | Col of FormField (Label/Field/Help/Error) |
Theme
domi_egui::theme::Theme::default() mirrors components/domi.css. All widgets
honor the default for v1; consumer-supplied theme overrides land in a future patch.
Visual parity
egui paints with egui::Style, not CSS, so the result is approximate visual parity by design. Run the smoke binary for the human-eye check:
Build targets
The WASM lane (trunk build + the examples/index.html) is browser-demo only and ships in Phase 4.
Library invariant
domi-egui does not modify the DOMicile design system library
(tokens/, components/, scripts/, examples/, crates/domi-server/).
It is a pure-Rust consumer of tokens/tokens.json (build-time codegen).