[{"data":1,"prerenderedAt":1040},["ShallowReactive",2],{"docs:\u002Fauthoring\u002Firu-format":3,"docs-navigation:":494,"docs-locale-navigation":955,"inrux-code-sfc:rs:use crate::domain::workspace_name_is_valid;\n":1031,"inrux-code-sfc:rs:mod domain;\n\u002F\u002F Keep the scaffold's generated include and mount code.\n":1032,"inrux-code-sfc:rs:\u002F\u002F\u002F Validate a name without depending on the UI.\npub fn workspace_name_is_valid(name: &str) -> bool {\n    !name.trim().is_empty() && name.chars().count() \u003C= 80\n}\n":1033,"inrux-code-sfc:xml:\u003Cview>\n    \u003CColumn class=\"form\">\n        \u003CInput model:value={name} placeholder=\"Workspace name\" \u002F>\n        \u003CButton text=\"Use name\" @click={confirm} \u002F>\n        \u003CText text={message.clone()} \u002F>\n    \u003C\u002FColumn>\n\u003C\u002Fview>\n\u003Crust>\nuse inrux::prelude::*;\n\nlet name: String = String::new();\nlet message: String = String::new();\n\n\u002F\u002F\u002F Keep this handler concerned with the current component's interaction.\nfn confirm(state: &mut State, _: &Context\u003CState>) {\n    state.message = format!(\"Selected {}\", state.name);\n}\n\u003C\u002Frust>\n\u003Cstyle scoped>\n.form {\n    gap: 12px;\n    padding: 24px;\n}\n\u003C\u002Fstyle>\n":1034,"inrux-code-sfc:xml:\u003Cview>\n    \u003CColumn class=\"counter\">\n        \u003CText text={format!(\"Count: {}\", count)} \u002F>\n        \u003CButton text=\"Increment\" @click={increment} \u002F>\n    \u003C\u002FColumn>\n\u003C\u002Fview>\n\u003Crust explicit>\nuse inrux::prelude::*;\n\n#[derive(Clone)]\npub struct State {\n    count: u32,\n}\n\n\u002F\u002F\u002F Initialize this component once for each mount.\npub fn setup() -> State {\n    State { count: 0 }\n}\n\n\u002F\u002F\u002F Handle clicks through the same state\u002Fevent API as automatic setup.\nfn increment(state: &mut State, _: &Context\u003CState>) {\n    state.count += 1;\n}\n\u003C\u002Frust>\n\u003Cstyle scoped>\n.counter {\n    padding: 24px;\n    gap: 16px;\n}\n\u003C\u002Fstyle>\n":1035,"i-tabler:chevron-down":1036},{"id":4,"title":5,"body":6,"description":483,"docs":484,"extension":485,"icon":484,"meta":486,"navigation":487,"path":489,"redirect":484,"seo":490,"space":491,"stem":492,"__hash__":493},"docs\u002F3.authoring\u002F01.iru-format.md","The .iru format",{"type":7,"value":8,"toc":470},"minimark",[9,18,23,30,57,68,90,94,177,180,191,195,210,221,242,255,259,276,279,285,292,296,299,302,306,309,312,315,319,340,343,352,355,362,368,374,394,398,408,414,421,425,428,437,441],[10,11,12,13,17],"p",{},"A ",[14,15,16],"code",{},".iru"," file is an Inrux single-file component, or SFC. You keep one component's UI structure, local interaction logic and optional styles in one source file. The compiler generates Rust from it before Cargo builds the application.",[19,20,22],"h2",{"id":21},"the-rust-block-is-setup","The Rust block is setup",[10,24,25,26,29],{},"Initialization statements in ",[14,27,28],{},"\u003Crust>"," run once per component instance. Declare local state and computed values directly in the block; you do not write a setup function.",[10,31,32,33,36,37,40,41,44,45,48,49,52,53,56],{},"A top-level typed declaration such as ",[14,34,35],{},"let count: u32 = 0;"," becomes a retained field in the generated ",[14,38,39],{},"State",". Read it as ",[14,42,43],{},"count"," in the view and update it through ",[14,46,47],{},"&mut State"," in a Rust handler. The qualified ",[14,50,51],{},"state.count"," spelling remains supported. An untyped ",[14,54,55],{},"let"," is a temporary initialization helper; it is not retained. Explicit types let rustc check the generated fields without runtime type inspection.",[10,58,59,60,63,64,67],{},"Imports, functions, structs and other Rust items remain at module scope. Handlers receive the generated State explicitly; they do not capture initialization locals. Child initialization can read ",[14,61,62],{},"props",", and the compiler retains the latest props in ",[14,65,66],{},"state.props",". Props changes, state updates and repaints do not rerun initialization.",[10,69,70,71,74,75,78,79,82,83,86,87,89],{},"The compiler generates an internal ",[14,72,73],{},"setup"," function for the existing mount API. ",[14,76,77],{},"main.rs"," can still call ",[14,80,81],{},"app::setup()",". A manual setup function requires ",[14,84,85],{},"\u003Crust explicit>",". Do not combine it with top-level initialization; plain ",[14,88,28],{}," always uses automatic setup.",[19,91,93],{"id":92},"the-three-blocks","The three blocks",[95,96,97,113],"table",{},[98,99,100],"thead",{},[101,102,103,107,110],"tr",{},[104,105,106],"th",{},"Block",[104,108,109],{},"Put here",[104,111,112],{},"Example",[114,115,116,133,146,160],"tbody",{},[101,117,118,124,127],{},[119,120,121],"td",{},[14,122,123],{},"\u003Cview>",[119,125,126],{},"Component tree, bindings and event wiring",[119,128,129,130],{},"A button with ",[14,131,132],{},"@click={save}",[101,134,135,139,142],{},[119,136,137],{},[14,138,28],{},[119,140,141],{},"Automatic setup, Rust imports, typed props, local state and UI handlers",[119,143,144],{},[14,145,35],{},[101,147,148,152,155],{},[119,149,150],{},[14,151,85],{},[119,153,154],{},"Rust module items with an authored State and setup function",[119,156,157],{},[14,158,159],{},"pub fn setup() -> State",[101,161,162,171,174],{},[119,163,164,167,168],{},[14,165,166],{},"\u003Cstyle>"," \u002F ",[14,169,170],{},"\u003Cstyle scoped>",[119,172,173],{},"Global or component-local CSS subset",[119,175,176],{},"A class for spacing and colors",[10,178,179],{},"Use braces for Rust expressions and quotes for literal strings. Put closing SFC block tags on their own lines. Keep one root component tree in the view; use a physical container when you need several children.",[181,182,189],"pre",{"className":183,"code":185,"filename":186,"language":187,"meta":188},[184],"language-xml","\u003Cview>\n    \u003CColumn class=\"form\">\n        \u003CInput model:value={name} placeholder=\"Workspace name\" \u002F>\n        \u003CButton text=\"Use name\" @click={confirm} \u002F>\n        \u003CText text={message.clone()} \u002F>\n    \u003C\u002FColumn>\n\u003C\u002Fview>\n\u003Crust>\nuse inrux::prelude::*;\n\nlet name: String = String::new();\nlet message: String = String::new();\n\n\u002F\u002F\u002F Keep this handler concerned with the current component's interaction.\nfn confirm(state: &mut State, _: &Context\u003CState>) {\n    state.message = format!(\"Selected {}\", state.name);\n}\n\u003C\u002Frust>\n\u003Cstyle scoped>\n.form {\n    gap: 12px;\n    padding: 24px;\n}\n\u003C\u002Fstyle>\n","src\u002FApp.iru","xml","",[14,190,185],{"__ignoreMap":188},[19,192,194],{"id":193},"direct-bindings-in-the-view","Direct bindings in the view",[10,196,197,198,201,202,205,206,209],{},"Use retained names directly: ",[14,199,200],{},"\u003CText text={count} \u002F>",", ",[14,203,204],{},"\u003CText text={counter.count} \u002F>"," or ",[14,207,208],{},"\u003CInput model:value={name} \u002F>",". In automatic setup these names come from typed top-level declarations. In explicit setup they come from the declared State fields. Both forms use the same view syntax.",[10,211,212,213,216,217,220],{},"A complete direct value binding reads Signal and Computed handles automatically and tracks the read. Ordinary owned props are cloned when ownership is required; plain text is formatted without an extra clone. A plain collection used as ",[14,214,215],{},"\u003CFor each={rows}>"," is borrowed rather than cloned. Computed getters remain cached and initialization still runs once per mount. A failed computed read produces a diagnostic text node for that render. To pass a Signal or Computed handle itself to another component, use an ordinary Rust method expression such as ",[14,218,219],{},"count.clone()",".",[10,222,223,224,227,228,230,231,234,235,237,238,241],{},"Normal Rust expressions retain Rust semantics. For example, use ",[14,225,226],{},"format!(\"Count: {}\", count.get())"," when ",[14,229,43],{}," is a Signal, and keep ",[14,232,233],{},".get()"," in method-call expressions. Fully qualified ",[14,236,51],{}," and ",[14,239,240],{},"props.title"," expressions keep their existing behavior. Custom macro bodies should use qualified state\u002Fprops paths. Loop items, closure parameters and block-local variables shadow component names.",[10,243,244,245,247,248,251,252,220],{},"Props can also be read by name. A local state field wins when it shares a name with a prop; use ",[14,246,240],{}," to select the prop explicitly. Props cannot be used as model targets. Nested composable fields such as ",[14,249,250],{},"counter.name"," can be model targets when they belong to retained state; calls and indexed expressions are not writable model targets. Rust functions and handlers continue to use explicit state parameters, such as ",[14,253,254],{},"state.count.update(...)",[19,256,258],{"id":257},"manual-setup-with-rust-explicit","Manual setup with rust explicit",[10,260,261,262,264,265,268,269,272,273,220],{},"Use ",[14,263,85],{}," when you want to declare State and its setup function yourself. The compiler uses that function and does not generate a second State or constructor. An explicit block accepts Rust module items, not top-level initialization statements. A stateful child declares ",[14,266,267],{},"Props",", stores current props in ",[14,270,271],{},"State.props",", and uses ",[14,274,275],{},"pub fn setup(props: Props) -> State",[10,277,278],{},"This complete root component uses the manual form:",[181,280,283],{"className":281,"code":282,"filename":186,"language":187,"meta":188},[184],"\u003Cview>\n    \u003CColumn class=\"counter\">\n        \u003CText text={format!(\"Count: {}\", count)} \u002F>\n        \u003CButton text=\"Increment\" @click={increment} \u002F>\n    \u003C\u002FColumn>\n\u003C\u002Fview>\n\u003Crust explicit>\nuse inrux::prelude::*;\n\n#[derive(Clone)]\npub struct State {\n    count: u32,\n}\n\n\u002F\u002F\u002F Initialize this component once for each mount.\npub fn setup() -> State {\n    State { count: 0 }\n}\n\n\u002F\u002F\u002F Handle clicks through the same state\u002Fevent API as automatic setup.\nfn increment(state: &mut State, _: &Context\u003CState>) {\n    state.count += 1;\n}\n\u003C\u002Frust>\n\u003Cstyle scoped>\n.counter {\n    padding: 24px;\n    gap: 16px;\n}\n\u003C\u002Fstyle>\n",[14,284,282],{"__ignoreMap":188},[10,286,287,288,291],{},"Changing only the opening tag does not convert between the two forms: automatic setup uses typed top-level declarations; manual setup uses State and a setup function. The closing tag is ",[14,289,290],{},"\u003C\u002Frust>"," in both forms. The language server, formatter and embedded Rust highlighting support both.",[19,293,295],{"id":294},"why-inrux-uses-iru","Why Inrux uses .iru",[10,297,298],{},"When you change a control, you often need to inspect its value, event handler and visual structure together. An SFC keeps those component-level details nearby. You can see which field an Input binds to and which function a Button calls without finding a second file.",[10,300,301],{},"This helps with local tasks such as adding validation feedback, changing a dialog's internal state, or extracting a reusable field. It does not require putting an application's logic in one file.",[19,303,305],{"id":304},"why-not-a-separate-xml-or-layout-file","Why not a separate XML or layout file?",[10,307,308],{},"Separate layout and logic files are a valid way to build a GUI. We chose SFCs as Inrux's default workflow so you can read one component's structure, local state, event bindings and scoped styles together. For example, when a Save button changes a form's saved flag, you can inspect the button, its binding and its handler in the same file.",[10,310,311],{},"A separate layout file would put that wiring and its Rust definitions in different places. Keeping them together reduces file switching for component-level changes. This is a workflow choice, not a claim that separate files are wrong or that SFCs suit every developer.",[10,313,314],{},"The boundary is the component, not the whole application. Split large views into reusable components and move logic into Rust modules when that makes ownership or reuse clearer.",[19,316,318],{"id":317},"you-can-still-write-code-in-rs-files","You can still write code in .rs files",[10,320,321,322,328,329,336,337,339],{},"Keep ",[323,324,325,326],"strong",{},"component and GUI logic in ",[14,327,16],{}," when that makes the component easier to understand. Keep ",[323,330,331,332,335],{},"business rules, persistence, network services and reusable domain code in ordinary ",[14,333,334],{},".rs"," modules or Cargo libraries",". The ",[14,338,28],{}," block accepts ordinary Rust imports; it does not require you to inline those implementations.",[10,341,342],{},"For example, declare a module in the scaffold's entry point:",[181,344,350],{"className":345,"code":347,"filename":348,"language":349,"meta":188},[346],"language-rust","mod domain;\n\u002F\u002F Keep the scaffold's generated include and mount code.\n","src\u002Fmain.rs","rust",[14,351,347],{"__ignoreMap":188},[10,353,354],{},"Define reusable logic in that module:",[181,356,360],{"className":357,"code":358,"filename":359,"language":349,"meta":188},[346],"\u002F\u002F\u002F Validate a name without depending on the UI.\npub fn workspace_name_is_valid(name: &str) -> bool {\n    !name.trim().is_empty() && name.chars().count() \u003C= 80\n}\n","src\u002Fdomain.rs",[14,361,358],{"__ignoreMap":188},[10,363,364,365,367],{},"Then add this import inside your component's ",[14,366,28],{}," block:",[181,369,372],{"className":370,"code":371,"language":349,"meta":188},[346],"use crate::domain::workspace_name_is_valid;\n",[14,373,371],{"__ignoreMap":188},[10,375,376,377,380,381,383,384,387,388,393],{},"Your UI handler can call the function with ",[14,378,379],{},"&state.name"," and update its local validation message. You can also move UI handlers into accessible ",[14,382,334],{}," modules, write reusable composables there, or build ",[14,385,386],{},"Node"," descriptions with Rust functions. Use normal Rust visibility rules for any state those helpers access. The ",[389,390,392],"a",{"href":391},"\u002Fauthoring\u002Fbusiness-logic","business-logic guide"," shows the handler and module wiring together.",[19,395,397],{"id":396},"why-a-separate-extension","Why a separate extension",[10,399,400,401,237,404,407],{},"The syntax is XML-like, but it is not standard XML. Rust expressions use braces; bindings and events use names such as ",[14,402,403],{},"model:value",[14,405,406],{},"@click",". A generic XML parser does not understand the complete file or its Rust type relationships.",[10,409,410,411,413],{},"The ",[14,412,16],{}," extension lets Cargo integration and the editor identify this format. The compiler validates component imports and markup, generates typed Rust calls, and leaves Rust type checking to rustc. The VS Code extension recognizes the block boundaries and forwards embedded Rust features to rust-analyzer.",[10,415,416,417,420],{},"Renaming a file to ",[14,418,419],{},".xml"," would not make it valid XML. Supporting standard XML would require another syntax design and different tooling.",[19,422,424],{"id":423},"the-tradeoffs","The tradeoffs",[10,426,427],{},"Some Rust developers prefer layouts written in Rust. The extra syntax introduces a compiler, generated-source diagnostics and editor tooling to maintain. Inrux has not proven that SFCs are the best choice for every application.",[10,429,430,431,433,434,436],{},"You can use ordinary Rust functions to construct ",[14,432,386],{}," descriptions and import them into component logic. The playground specimens use that approach alongside ",[14,435,16],{}," views. The goal is to keep Rust reusable, not to replace it with a separate business-logic language.",[19,438,440],{"id":439},"current-syntax-limits","Current syntax limits",[10,442,443,444,447,448,167,451,454,455,457,458,237,461,464,465,469],{},"Use capitalized ",[14,445,446],{},"\u003CChildren \u002F>"," for default child content and ",[14,449,450],{},"\u003CIf>",[14,452,453],{},"\u003CFor>"," for control flow. Attribute-first conditionals\u002Floops, transparent nested ",[14,456,123],{}," groups, named\u002Fscoped content and animation refs are not implemented. ",[14,459,460],{},"\u003Ctemplate>",[14,462,463],{},"\u003CSlot \u002F>"," remain compatibility aliases. See ",[389,466,468],{"href":467},"\u002Fgetting-started\u002Fstatus","alpha status"," before copying examples from older discussions.",{"title":188,"searchDepth":471,"depth":471,"links":472},2,[473,474,475,476,477,478,479,480,481,482],{"id":21,"depth":471,"text":22},{"id":92,"depth":471,"text":93},{"id":193,"depth":471,"text":194},{"id":257,"depth":471,"text":258},{"id":294,"depth":471,"text":295},{"id":304,"depth":471,"text":305},{"id":317,"depth":471,"text":318},{"id":396,"depth":471,"text":397},{"id":423,"depth":471,"text":424},{"id":439,"depth":471,"text":440},"Learn what goes in a component file, why Inrux uses SFCs and when to move code out.",null,"md",{},{"icon":488},"tabler:file-code","\u002Fauthoring\u002Firu-format",{"title":5,"description":483},false,"3.authoring\u002F01.iru-format","BWkcGW7-eCoqBtX4pePgLma4DK9GSp6sN7GS7UiI2Q0",[495,549,581,649,689,908],{"title":496,"navigation":497,"description":484,"space":491,"icon":484,"docs":484,"redirect":484,"path":498,"stem":499,"children":500,"page":491},"Getting started",true,"\u002Fgetting-started","1.getting-started",[501,508,515,522,529,536,543],{"title":502,"path":503,"stem":504,"navigation":505,"description":507,"space":491,"icon":506,"docs":484,"redirect":484},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F01.introduction",{"icon":506},"tabler:book-2","Build native Rust interfaces with reusable .iru components.",{"title":509,"path":510,"stem":511,"navigation":512,"description":514,"space":491,"icon":513,"docs":484,"redirect":484},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F02.installation",{"icon":513},"tabler:download","Install the native build tools, clone Inrux and run your first application.",{"title":516,"path":517,"stem":518,"navigation":519,"description":521,"space":491,"icon":520,"docs":484,"redirect":484},"Your first application","\u002Fgetting-started\u002Ffirst-app","1.getting-started\u002F03.first-app",{"icon":520},"tabler:rocket","Create a project, mount App.iru and connect a button to local state.",{"title":523,"path":524,"stem":525,"navigation":526,"description":528,"space":491,"icon":527,"docs":484,"redirect":484},"Project structure","\u002Fgetting-started\u002Fproject-structure","1.getting-started\u002F04.project-structure",{"icon":527},"tabler:folders","Find the framework crates, native examples, editor tools and application folders.",{"title":530,"path":531,"stem":532,"navigation":533,"description":535,"space":491,"icon":534,"docs":484,"redirect":484},"Playgrounds","\u002Fgetting-started\u002Fplaygrounds","1.getting-started\u002F05.playgrounds",{"icon":534},"tabler:device-desktop","Run the same component catalogue with egui, Masonry or GPUI.",{"title":537,"path":538,"stem":539,"navigation":540,"description":542,"space":491,"icon":541,"docs":484,"redirect":484},"VS Code","\u002Fgetting-started\u002Fvscode","1.getting-started\u002F06.vscode",{"icon":541},"tabler:code","Set up .iru icons, completion, formatting, navigation and Rust support.",{"title":544,"path":467,"stem":545,"navigation":546,"description":548,"space":491,"icon":547,"docs":484,"redirect":484},"Alpha status","1.getting-started\u002F07.status",{"icon":547},"tabler:flask","Check what works today and which features still need implementation or platform testing.",{"title":550,"navigation":497,"description":484,"space":491,"icon":484,"docs":484,"redirect":484,"path":551,"stem":552,"children":553,"page":491},"Architecture","\u002Finternals","2.internals",[554,560,567,574],{"title":550,"path":555,"stem":556,"navigation":557,"description":559,"space":491,"icon":558,"docs":484,"redirect":484},"\u002Finternals\u002Farchitecture","2.internals\u002F01.architecture",{"icon":558},"tabler:sitemap","Follow compilation, state ownership, threads and the native adapter boundary.",{"title":561,"path":562,"stem":563,"navigation":564,"description":566,"space":491,"icon":565,"docs":484,"redirect":484},"Adapter services","\u002Finternals\u002Fadapter-services","2.internals\u002F02.adapter-services",{"icon":565},"tabler:plug","Understand provider contracts, capabilities, fallback selection and component prerequisites.",{"title":568,"path":569,"stem":570,"navigation":571,"description":573,"space":491,"icon":572,"docs":484,"redirect":484},"Text rendering","\u002Finternals\u002Ftext-rendering","2.internals\u002F03.text-rendering",{"icon":572},"tabler:typography","Learn how shared shaping and glyph rasterization reduce differences between engines.",{"title":575,"path":576,"stem":577,"navigation":578,"description":580,"space":491,"icon":579,"docs":484,"redirect":484},"Headless components","\u002Finternals\u002Fheadless-components","2.internals\u002F04.headless-components",{"icon":579},"tabler:components","Separate interaction behavior from application appearance and themes.",{"title":582,"navigation":497,"description":484,"space":491,"icon":484,"docs":484,"redirect":484,"path":583,"stem":584,"children":585,"page":491},"Writing components","\u002Fauthoring","3.authoring",[586,588,594,601,608,615,622,628,635,642],{"title":5,"path":489,"stem":492,"navigation":587,"description":483,"space":491,"icon":488,"docs":484,"redirect":484},{"icon":488},{"title":589,"path":590,"stem":591,"navigation":592,"description":593,"space":491,"icon":579,"docs":484,"redirect":484},"Component contract","\u002Fauthoring\u002Fcomponent-contract","3.authoring\u002F02.component-contract",{"icon":579},"Write imports, props, events, models, keyed children and component state.",{"title":595,"path":596,"stem":597,"navigation":598,"description":600,"space":491,"icon":599,"docs":484,"redirect":484},"Props, events and models","\u002Fauthoring\u002Fprops-events-models","3.authoring\u002F03.props-events-models",{"icon":599},"tabler:arrows-exchange","Pass values down, send typed events up and bind controlled values.",{"title":602,"path":603,"stem":604,"navigation":605,"description":607,"space":491,"icon":606,"docs":484,"redirect":484},"State and computed values","\u002Fauthoring\u002Fstate-and-computed","3.authoring\u002F04.state-and-computed",{"icon":606},"tabler:bolt","Update local fields, share reactive handles and derive cached values.",{"title":609,"path":610,"stem":611,"navigation":612,"description":614,"space":491,"icon":613,"docs":484,"redirect":484},"Conditions, lists and dynamic components","\u002Fauthoring\u002Fcontrol-flow","3.authoring\u002F05.control-flow",{"icon":613},"tabler:git-branch","Render branches, preserve list identity and select imported components.",{"title":616,"path":617,"stem":618,"navigation":619,"description":621,"space":491,"icon":620,"docs":484,"redirect":484},"Children and layouts","\u002Fauthoring\u002Fchildren-and-layouts","3.authoring\u002F06.children-and-layouts",{"icon":620},"tabler:layout","Pass default child content through reusable application shells.",{"title":623,"path":391,"stem":624,"navigation":625,"description":627,"space":491,"icon":626,"docs":484,"redirect":484},"Separating business logic","3.authoring\u002F07.business-logic",{"icon":626},"tabler:briefcase","Keep component interactions nearby and domain behavior reusable in Rust modules.",{"title":629,"path":630,"stem":631,"navigation":632,"description":634,"space":491,"icon":633,"docs":484,"redirect":484},"Lifecycle and refs","\u002Fauthoring\u002Flifecycle-and-refs","3.authoring\u002F08.lifecycle-and-refs",{"icon":633},"tabler:refresh","Understand setup, mount identity, cleanup and the limits of native refs.",{"title":636,"path":637,"stem":638,"navigation":639,"description":641,"space":491,"icon":640,"docs":484,"redirect":484},"Background tasks","\u002Fauthoring\u002Fbackground-tasks","3.authoring\u002F09.background-tasks",{"icon":640},"tabler:cpu","Run slow work outside the coordinator and return typed results to component state.",{"title":643,"path":644,"stem":645,"navigation":646,"description":648,"space":491,"icon":647,"docs":484,"redirect":484},"Provide and inject","\u002Fauthoring\u002Fdependency-injection","3.authoring\u002F10.dependency-injection",{"icon":647},"tabler:plug-connected","Share typed services through a component subtree without prop drilling.",{"title":650,"navigation":497,"description":484,"space":491,"icon":484,"docs":484,"redirect":484,"path":651,"stem":652,"children":653,"page":491},"Styling","\u002Fstyling","4.styling",[654,661,668,675,682],{"title":655,"path":656,"stem":657,"navigation":658,"description":660,"space":491,"icon":659,"docs":484,"redirect":484},"Styling basics","\u002Fstyling\u002Foverview","4.styling\u002F01.overview",{"icon":659},"tabler:palette","Style headless components with CSS-like rules or Rust values.",{"title":662,"path":663,"stem":664,"navigation":665,"description":667,"space":491,"icon":666,"docs":484,"redirect":484},"CSS reference","\u002Fstyling\u002Fcss-reference","4.styling\u002F02.css-reference",{"icon":666},"tabler:file-type-css","Use the supported selectors, properties, cascade and compiled style rules.",{"title":669,"path":670,"stem":671,"navigation":672,"description":674,"space":491,"icon":673,"docs":484,"redirect":484},"Parts and states","\u002Fstyling\u002Fparts-and-states","4.styling\u002F03.parts-and-states",{"icon":673},"tabler:puzzle","Style exposed control parts and interaction states without native widget handles.",{"title":676,"path":677,"stem":678,"navigation":679,"description":681,"space":491,"icon":680,"docs":484,"redirect":484},"Color values","\u002Fstyling\u002Fcolors","4.styling\u002F04.colors",{"icon":680},"tabler:color-swatch","Write literal CSS colors and understand alpha and color-space limits.",{"title":683,"path":684,"stem":685,"navigation":686,"description":688,"space":491,"icon":687,"docs":484,"redirect":484},"Themes and responsiveness","\u002Fstyling\u002Fthemes-and-responsiveness","4.styling\u002F05.themes-and-responsiveness",{"icon":687},"tabler:sun-moon","Compile complete theme sheets and respond to logical viewport dimensions.",{"title":690,"navigation":497,"description":484,"space":491,"icon":484,"docs":484,"redirect":484,"path":691,"stem":692,"children":693,"page":491},"Components","\u002Fcomponents","5.components",[694,701,708,715,722,729,736,743,750,757,764,771,778,785,792,799,806,813,820,826,833,840,847,854,860,867,874,881,888,894,901],{"title":695,"path":696,"stem":697,"navigation":698,"description":700,"space":491,"icon":699,"docs":484,"redirect":484},"AspectRatio","\u002Fcomponents\u002Faspect-ratio","5.components\u002Faspect-ratio",{"icon":699},"tabler:aspect-ratio","Size a container around a positive width-to-height ratio.",{"title":702,"path":703,"stem":704,"navigation":705,"description":707,"space":491,"icon":706,"docs":484,"redirect":484},"Badge","\u002Fcomponents\u002Fbadge","5.components\u002Fbadge",{"icon":706},"tabler:badge","Display a short status label.",{"title":709,"path":710,"stem":711,"navigation":712,"description":714,"space":491,"icon":713,"docs":484,"redirect":484},"Box","\u002Fcomponents\u002Fbox","5.components\u002Fbox",{"icon":713},"tabler:box","Create a physical vertical container.",{"title":716,"path":717,"stem":718,"navigation":719,"description":721,"space":491,"icon":720,"docs":484,"redirect":484},"Button","\u002Fcomponents\u002Fbutton","5.components\u002Fbutton",{"icon":720},"tabler:hand-click","Trigger an action from a labeled control.",{"title":723,"path":724,"stem":725,"navigation":726,"description":728,"space":491,"icon":727,"docs":484,"redirect":484},"Card","\u002Fcomponents\u002Fcard","5.components\u002Fcard",{"icon":727},"tabler:id","Group related child content in a surface.",{"title":730,"path":731,"stem":732,"navigation":733,"description":735,"space":491,"icon":734,"docs":484,"redirect":484},"Center","\u002Fcomponents\u002Fcenter","5.components\u002Fcenter",{"icon":734},"tabler:align-box-center-middle","Center a group within available free space.",{"title":737,"path":738,"stem":739,"navigation":740,"description":742,"space":491,"icon":741,"docs":484,"redirect":484},"Checkbox","\u002Fcomponents\u002Fcheckbox","5.components\u002Fcheckbox",{"icon":741},"tabler:checkbox","Control a labeled boolean choice.",{"title":744,"path":745,"stem":746,"navigation":747,"description":749,"space":491,"icon":748,"docs":484,"redirect":484},"Column","\u002Fcomponents\u002Fcolumn","5.components\u002Fcolumn",{"icon":748},"tabler:layout-list","Arrange child nodes vertically.",{"title":751,"path":752,"stem":753,"navigation":754,"description":756,"space":491,"icon":755,"docs":484,"redirect":484},"Container","\u002Fcomponents\u002Fcontainer","5.components\u002Fcontainer",{"icon":755},"tabler:container","Constrain and center a reading or application column.",{"title":758,"path":759,"stem":760,"navigation":761,"description":763,"space":491,"icon":762,"docs":484,"redirect":484},"Content reference","\u002Fcomponents\u002Fcontent-reference","5.components\u002Fcontent-reference",{"icon":762},"tabler:file-description","Compose cards, badges and separators with shared component descriptions.",{"title":765,"path":766,"stem":767,"navigation":768,"description":770,"space":491,"icon":769,"docs":484,"redirect":484},"Dialog","\u002Fcomponents\u002Fdialog","5.components\u002Fdialog",{"icon":769},"tabler:message","Show an egui-only modal prototype.",{"title":772,"path":773,"stem":774,"navigation":775,"description":777,"space":491,"icon":776,"docs":484,"redirect":484},"Flex","\u002Fcomponents\u002Fflex","5.components\u002Fflex",{"icon":776},"tabler:layout-distribute-horizontal","Choose a flexible layout direction and wrapping policy.",{"title":779,"path":780,"stem":781,"navigation":782,"description":784,"space":491,"icon":783,"docs":484,"redirect":484},"Grid","\u002Fcomponents\u002Fgrid","5.components\u002Fgrid",{"icon":783},"tabler:layout-grid","Arrange direct children in equal-width columns.",{"title":786,"path":787,"stem":788,"navigation":789,"description":791,"space":491,"icon":790,"docs":484,"redirect":484},"Heartbeat","\u002Fcomponents\u002Fheartbeat","5.components\u002Fheartbeat",{"icon":790},"tabler:heartbeat","Inspect an egui-only UI-thread animation diagnostic.",{"title":793,"path":794,"stem":795,"navigation":796,"description":798,"space":491,"icon":797,"docs":484,"redirect":484},"Input","\u002Fcomponents\u002Finput","5.components\u002Finput",{"icon":797},"tabler:forms","Edit a controlled single-line string.",{"title":800,"path":801,"stem":802,"navigation":803,"description":805,"space":491,"icon":804,"docs":484,"redirect":484},"Layout reference","\u002Fcomponents\u002Flayout-reference","5.components\u002Flayout-reference",{"icon":804},"tabler:layout-dashboard","Understand sizing, centering, spacing, flex, grid and aspect-ratio behavior.",{"title":807,"path":808,"stem":809,"navigation":810,"description":812,"space":491,"icon":811,"docs":484,"redirect":484},"Markdown","\u002Fcomponents\u002Fmarkdown","5.components\u002Fmarkdown",{"icon":811},"tabler:markdown","Render a subset of CommonMark through existing native components.",{"title":814,"path":815,"stem":816,"navigation":817,"description":819,"space":491,"icon":818,"docs":484,"redirect":484},"Meter","\u002Fcomponents\u002Fmeter","5.components\u002Fmeter",{"icon":818},"tabler:gauge","Show a finite measurement within explicit bounds.",{"title":821,"path":822,"stem":823,"navigation":824,"description":825,"space":491,"icon":579,"docs":484,"redirect":484},"Component catalogue","\u002Fcomponents\u002Foverview","5.components\u002Foverview",{"icon":579},"Choose a portable control or layout primitive and check its current API.",{"title":827,"path":828,"stem":829,"navigation":830,"description":832,"space":491,"icon":831,"docs":484,"redirect":484},"Progress","\u002Fcomponents\u002Fprogress","5.components\u002Fprogress",{"icon":831},"tabler:progress","Show a finite amount of completed work.",{"title":834,"path":835,"stem":836,"navigation":837,"description":839,"space":491,"icon":838,"docs":484,"redirect":484},"Boolean and range reference","\u002Fcomponents\u002Frange-reference","5.components\u002Frange-reference",{"icon":838},"tabler:adjustments-horizontal","Use controlled switches and validated progress and measurement ranges.",{"title":841,"path":842,"stem":843,"navigation":844,"description":846,"space":491,"icon":845,"docs":484,"redirect":484},"Row","\u002Fcomponents\u002Frow","5.components\u002Frow",{"icon":845},"tabler:columns","Arrange child nodes horizontally.",{"title":848,"path":849,"stem":850,"navigation":851,"description":853,"space":491,"icon":852,"docs":484,"redirect":484},"ScrollArea","\u002Fcomponents\u002Fscroll-area","5.components\u002Fscroll-area",{"icon":852},"tabler:arrows-vertical","Clip and scroll bounded child content.",{"title":855,"path":856,"stem":857,"navigation":858,"description":859,"space":491,"icon":852,"docs":484,"redirect":484},"Scrolling reference","\u002Fcomponents\u002Fscrolling-reference","5.components\u002Fscrolling-reference",{"icon":852},"Use viewport commands, observations, clipping and native input direction.",{"title":861,"path":862,"stem":863,"navigation":864,"description":866,"space":491,"icon":865,"docs":484,"redirect":484},"Select","\u002Fcomponents\u002Fselect","5.components\u002Fselect",{"icon":865},"tabler:selector","Choose a controlled string value from options.",{"title":868,"path":869,"stem":870,"navigation":871,"description":873,"space":491,"icon":872,"docs":484,"redirect":484},"Separator","\u002Fcomponents\u002Fseparator","5.components\u002Fseparator",{"icon":872},"tabler:separator","Draw a decorative divider.",{"title":875,"path":876,"stem":877,"navigation":878,"description":880,"space":491,"icon":879,"docs":484,"redirect":484},"Spacer","\u002Fcomponents\u002Fspacer","5.components\u002Fspacer",{"icon":879},"tabler:space","Consume free main-axis space in a Row or Column.",{"title":882,"path":883,"stem":884,"navigation":885,"description":887,"space":491,"icon":886,"docs":484,"redirect":484},"Switch","\u002Fcomponents\u002Fswitch","5.components\u002Fswitch",{"icon":886},"tabler:toggle-left","Turn a labeled setting on or off.",{"title":889,"path":890,"stem":891,"navigation":892,"description":893,"space":491,"icon":572,"docs":484,"redirect":484},"Text","\u002Fcomponents\u002Ftext","5.components\u002Ftext",{"icon":572},"Display text with shared shaping and glyph pixels.",{"title":895,"path":896,"stem":897,"navigation":898,"description":900,"space":491,"icon":899,"docs":484,"redirect":484},"TextArea","\u002Fcomponents\u002Ftext-area","5.components\u002Ftext-area",{"icon":899},"tabler:align-left","Edit multiline text with wrapping and caret scrolling.",{"title":902,"path":903,"stem":904,"navigation":905,"description":907,"space":491,"icon":906,"docs":484,"redirect":484},"Text editing reference","\u002Fcomponents\u002Ftext-editing-reference","5.components\u002Ftext-editing-reference",{"icon":906},"tabler:text-wrap","Choose single-line Input or multiline TextArea and bind controlled text.",{"title":909,"navigation":497,"description":484,"space":491,"icon":484,"docs":484,"redirect":484,"path":910,"stem":911,"children":912,"page":491},"Tooling and contribution","\u002Ftooling","6.tooling",[913,920,927,934,941,948],{"title":914,"path":915,"stem":916,"navigation":917,"description":919,"space":491,"icon":918,"docs":484,"redirect":484},"CLI","\u002Ftooling\u002Fcli","6.tooling\u002F01.cli",{"icon":918},"tabler:terminal-2","Scaffold, validate and run applications through Cargo.",{"title":921,"path":922,"stem":923,"navigation":924,"description":926,"space":491,"icon":925,"docs":484,"redirect":484},"Contributing","\u002Ftooling\u002Fcontributing","6.tooling\u002F02.contributing",{"icon":925},"tabler:git-pull-request","Keep modules focused, preserve backend boundaries and run the relevant checks.",{"title":928,"path":929,"stem":930,"navigation":931,"description":933,"space":491,"icon":932,"docs":484,"redirect":484},"Working on this website","\u002Ftooling\u002Fdocumentation","6.tooling\u002F03.documentation",{"icon":932},"tabler:notebook","Run, edit, validate and export the Nuxt documentation site.",{"title":935,"path":936,"stem":937,"navigation":938,"description":940,"space":491,"icon":939,"docs":484,"redirect":484},"Troubleshooting","\u002Ftooling\u002Ftroubleshooting","6.tooling\u002F04.troubleshooting",{"icon":939},"tabler:bug","Resolve common compiler, native build and editor setup problems.",{"title":942,"path":943,"stem":944,"navigation":945,"description":947,"space":491,"icon":946,"docs":484,"redirect":484},"Rust API reference","\u002Ftooling\u002Frust-api","6.tooling\u002F05.rust-api",{"icon":946},"tabler:api","Find the public Rust types, build local rustdoc and inspect individual package APIs.",{"title":949,"path":950,"stem":951,"navigation":952,"description":954,"space":491,"icon":953,"docs":484,"redirect":484},"License and notices","\u002Ftooling\u002Flicense","6.tooling\u002F06.license",{"icon":953},"tabler:scale","Understand the license for Inrux code and the notices retained for dependencies and fonts.",[956,965,971,983,990,1023],{"title":496,"space":491,"redirect":484,"path":498,"stem":499,"children":957,"page":491},[958,959,960,961,962,963,964],{"title":502,"path":503,"stem":504,"space":491,"redirect":484,"icon":506},{"title":509,"path":510,"stem":511,"space":491,"redirect":484,"icon":513},{"title":516,"path":517,"stem":518,"space":491,"redirect":484,"icon":520},{"title":523,"path":524,"stem":525,"space":491,"redirect":484,"icon":527},{"title":530,"path":531,"stem":532,"space":491,"redirect":484,"icon":534},{"title":537,"path":538,"stem":539,"space":491,"redirect":484,"icon":541},{"title":544,"path":467,"stem":545,"space":491,"redirect":484,"icon":547},{"title":550,"space":491,"redirect":484,"path":551,"stem":552,"children":966,"page":491},[967,968,969,970],{"title":550,"path":555,"stem":556,"space":491,"redirect":484,"icon":558},{"title":561,"path":562,"stem":563,"space":491,"redirect":484,"icon":565},{"title":568,"path":569,"stem":570,"space":491,"redirect":484,"icon":572},{"title":575,"path":576,"stem":577,"space":491,"redirect":484,"icon":579},{"title":582,"space":491,"redirect":484,"path":583,"stem":584,"children":972,"page":491},[973,974,975,976,977,978,979,980,981,982],{"title":5,"path":489,"stem":492,"space":491,"redirect":484,"icon":488},{"title":589,"path":590,"stem":591,"space":491,"redirect":484,"icon":579},{"title":595,"path":596,"stem":597,"space":491,"redirect":484,"icon":599},{"title":602,"path":603,"stem":604,"space":491,"redirect":484,"icon":606},{"title":609,"path":610,"stem":611,"space":491,"redirect":484,"icon":613},{"title":616,"path":617,"stem":618,"space":491,"redirect":484,"icon":620},{"title":623,"path":391,"stem":624,"space":491,"redirect":484,"icon":626},{"title":629,"path":630,"stem":631,"space":491,"redirect":484,"icon":633},{"title":636,"path":637,"stem":638,"space":491,"redirect":484,"icon":640},{"title":643,"path":644,"stem":645,"space":491,"redirect":484,"icon":647},{"title":650,"space":491,"redirect":484,"path":651,"stem":652,"children":984,"page":491},[985,986,987,988,989],{"title":655,"path":656,"stem":657,"space":491,"redirect":484,"icon":659},{"title":662,"path":663,"stem":664,"space":491,"redirect":484,"icon":666},{"title":669,"path":670,"stem":671,"space":491,"redirect":484,"icon":673},{"title":676,"path":677,"stem":678,"space":491,"redirect":484,"icon":680},{"title":683,"path":684,"stem":685,"space":491,"redirect":484,"icon":687},{"title":690,"space":491,"redirect":484,"path":691,"stem":692,"children":991,"page":491},[992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022],{"title":695,"path":696,"stem":697,"space":491,"redirect":484,"icon":699},{"title":702,"path":703,"stem":704,"space":491,"redirect":484,"icon":706},{"title":709,"path":710,"stem":711,"space":491,"redirect":484,"icon":713},{"title":716,"path":717,"stem":718,"space":491,"redirect":484,"icon":720},{"title":723,"path":724,"stem":725,"space":491,"redirect":484,"icon":727},{"title":730,"path":731,"stem":732,"space":491,"redirect":484,"icon":734},{"title":737,"path":738,"stem":739,"space":491,"redirect":484,"icon":741},{"title":744,"path":745,"stem":746,"space":491,"redirect":484,"icon":748},{"title":751,"path":752,"stem":753,"space":491,"redirect":484,"icon":755},{"title":758,"path":759,"stem":760,"space":491,"redirect":484,"icon":762},{"title":765,"path":766,"stem":767,"space":491,"redirect":484,"icon":769},{"title":772,"path":773,"stem":774,"space":491,"redirect":484,"icon":776},{"title":779,"path":780,"stem":781,"space":491,"redirect":484,"icon":783},{"title":786,"path":787,"stem":788,"space":491,"redirect":484,"icon":790},{"title":793,"path":794,"stem":795,"space":491,"redirect":484,"icon":797},{"title":800,"path":801,"stem":802,"space":491,"redirect":484,"icon":804},{"title":807,"path":808,"stem":809,"space":491,"redirect":484,"icon":811},{"title":814,"path":815,"stem":816,"space":491,"redirect":484,"icon":818},{"title":821,"path":822,"stem":823,"space":491,"redirect":484,"icon":579},{"title":827,"path":828,"stem":829,"space":491,"redirect":484,"icon":831},{"title":834,"path":835,"stem":836,"space":491,"redirect":484,"icon":838},{"title":841,"path":842,"stem":843,"space":491,"redirect":484,"icon":845},{"title":848,"path":849,"stem":850,"space":491,"redirect":484,"icon":852},{"title":855,"path":856,"stem":857,"space":491,"redirect":484,"icon":852},{"title":861,"path":862,"stem":863,"space":491,"redirect":484,"icon":865},{"title":868,"path":869,"stem":870,"space":491,"redirect":484,"icon":872},{"title":875,"path":876,"stem":877,"space":491,"redirect":484,"icon":879},{"title":882,"path":883,"stem":884,"space":491,"redirect":484,"icon":886},{"title":889,"path":890,"stem":891,"space":491,"redirect":484,"icon":572},{"title":895,"path":896,"stem":897,"space":491,"redirect":484,"icon":899},{"title":902,"path":903,"stem":904,"space":491,"redirect":484,"icon":906},{"title":909,"space":491,"redirect":484,"path":910,"stem":911,"children":1024,"page":491},[1025,1026,1027,1028,1029,1030],{"title":914,"path":915,"stem":916,"space":491,"redirect":484,"icon":918},{"title":921,"path":922,"stem":923,"space":491,"redirect":484,"icon":925},{"title":928,"path":929,"stem":930,"space":491,"redirect":484,"icon":932},{"title":935,"path":936,"stem":937,"space":491,"redirect":484,"icon":939},{"title":942,"path":943,"stem":944,"space":491,"redirect":484,"icon":946},{"title":949,"path":950,"stem":951,"space":491,"redirect":484,"icon":953},"\u003Cspan class=\"shj-syn-kwd\">use\u003C\u002Fspan> \u003Cspan class=\"shj-syn-kwd\">crate\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">::\u003C\u002Fspan>domain\u003Cspan class=\"shj-syn-oper\">::\u003C\u002Fspan>workspace_name_is_valid;\n","\u003Cspan class=\"shj-syn-kwd\">mod\u003C\u002Fspan> domain;\n\u003Cspan class=\"shj-syn-cmnt\">\u002F\u002F Keep the scaffold's generated include and mount code.\n\u003C\u002Fspan>","\u003Cspan class=\"shj-syn-cmnt\">\u002F\u002F\u002F Validate a name without depending on the UI.\n\u003C\u002Fspan>\u003Cspan class=\"shj-syn-kwd\">pub\u003C\u002Fspan> \u003Cspan class=\"shj-syn-kwd\">fn\u003C\u002Fspan> \u003Cspan class=\"shj-syn-func\">workspace_name_is_valid\u003C\u002Fspan>(name\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">&#38;\u003C\u002Fspan>str) \u003Cspan class=\"shj-syn-oper\">-&gt;\u003C\u002Fspan> bool {\n    \u003Cspan class=\"shj-syn-oper\">!\u003C\u002Fspan>name\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">trim\u003C\u002Fspan>()\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">is_empty\u003C\u002Fspan>() \u003Cspan class=\"shj-syn-oper\">&#38;&#38;\u003C\u002Fspan> name\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">chars\u003C\u002Fspan>()\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">count\u003C\u002Fspan>() \u003Cspan class=\"shj-syn-oper\">&lt;=\u003C\u002Fspan> \u003Cspan class=\"shj-syn-num\">80\u003C\u002Fspan>\n}\n","\u003Cspan class=\"shj-syn-tag\">&lt;view\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n    \u003Cspan class=\"shj-syn-tag\">&lt;Column\u003C\u002Fspan> \u003Cspan class=\"shj-syn-attr\">class\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan>\u003Cspan class=\"shj-syn-str\">\"form\"\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n        \u003Cspan class=\"shj-syn-tag\">&lt;Input\u003C\u002Fspan> \u003Cspan class=\"shj-syn-attr\">model:value\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan>{name} \u003Cspan class=\"shj-syn-attr\">placeholder\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan>\u003Cspan class=\"shj-syn-str\">\"Workspace name\"\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">\u002F\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n        \u003Cspan class=\"shj-syn-tag\">&lt;Button\u003C\u002Fspan> \u003Cspan class=\"shj-syn-attr\">text\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan>\u003Cspan class=\"shj-syn-str\">\"Use name\"\u003C\u002Fspan> \u003Cspan class=\"shj-syn-attr\">@click\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan>{confirm} \u003Cspan class=\"shj-syn-oper\">\u002F\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n        \u003Cspan class=\"shj-syn-tag\">&lt;Text\u003C\u002Fspan> \u003Cspan class=\"shj-syn-attr\">text\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan>{message.clone()} \u003Cspan class=\"shj-syn-oper\">\u002F\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n    \u003Cspan class=\"shj-syn-tag\">&lt;\u002FColumn\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n\u003Cspan class=\"shj-syn-tag\">&lt;\u002Fview\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n\u003Cspan class=\"shj-syn-tag\">&lt;rust\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n\u003Cspan class=\"shj-syn-kwd\">use\u003C\u002Fspan> inrux\u003Cspan class=\"shj-syn-oper\">::\u003C\u002Fspan>prelude\u003Cspan class=\"shj-syn-oper\">::*\u003C\u002Fspan>;\n\n\u003Cspan class=\"shj-syn-kwd\">let\u003C\u002Fspan> name\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">String\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">String\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">::\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">new\u003C\u002Fspan>();\n\u003Cspan class=\"shj-syn-kwd\">let\u003C\u002Fspan> message\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">String\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">String\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">::\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">new\u003C\u002Fspan>();\n\n\u003Cspan class=\"shj-syn-cmnt\">\u002F\u002F\u002F Keep this handler concerned with the current component's interaction.\n\u003C\u002Fspan>\u003Cspan class=\"shj-syn-kwd\">fn\u003C\u002Fspan> \u003Cspan class=\"shj-syn-func\">confirm\u003C\u002Fspan>(state\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">&#38;\u003C\u002Fspan>\u003Cspan class=\"shj-syn-kwd\">mut\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">State\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan> _\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">&#38;\u003C\u002Fspan>\u003Cspan class=\"shj-syn-class\">Context\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&lt;\u003C\u002Fspan>\u003Cspan class=\"shj-syn-class\">State\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>) {\n    state\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>message \u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan> \u003Cspan class=\"shj-syn-func\">format\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">!\u003C\u002Fspan>(\u003Cspan class=\"shj-syn-str\">\"Selected {}\"\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan> state\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>name);\n}\n\u003Cspan class=\"shj-syn-tag\">&lt;\u002Frust\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n\u003Cspan class=\"shj-syn-tag\">&lt;style\u003C\u002Fspan> scoped\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n\u003Cspan class=\"shj-syn-var\">.form\u003C\u002Fspan> {\n    \u003Cspan class=\"shj-syn-var\">gap\u003C\u002Fspan>: \u003Cspan class=\"shj-syn-num\">12\u003C\u002Fspan>\u003Cspan class=\"shj-syn-var\">px\u003C\u002Fspan>\u003Cspan class=\"shj-syn-num\">\u003C\u002Fspan>;\n    \u003Cspan class=\"shj-syn-var\">padding\u003C\u002Fspan>: \u003Cspan class=\"shj-syn-num\">24\u003C\u002Fspan>\u003Cspan class=\"shj-syn-var\">px\u003C\u002Fspan>\u003Cspan class=\"shj-syn-num\">\u003C\u002Fspan>;\n}\n\u003Cspan class=\"shj-syn-tag\">&lt;\u002Fstyle\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n","\u003Cspan class=\"shj-syn-tag\">&lt;view\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n    \u003Cspan class=\"shj-syn-tag\">&lt;Column\u003C\u002Fspan> \u003Cspan class=\"shj-syn-attr\">class\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan>\u003Cspan class=\"shj-syn-str\">\"counter\"\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n        \u003Cspan class=\"shj-syn-tag\">&lt;Text\u003C\u002Fspan> \u003Cspan class=\"shj-syn-attr\">text\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan>{format!(\u003Cspan class=\"shj-syn-str\">\"Count: {}\"\u003C\u002Fspan>, count)} \u003Cspan class=\"shj-syn-oper\">\u002F\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n        \u003Cspan class=\"shj-syn-tag\">&lt;Button\u003C\u002Fspan> \u003Cspan class=\"shj-syn-attr\">text\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan>\u003Cspan class=\"shj-syn-str\">\"Increment\"\u003C\u002Fspan> \u003Cspan class=\"shj-syn-attr\">@click\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan>{increment} \u003Cspan class=\"shj-syn-oper\">\u002F\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n    \u003Cspan class=\"shj-syn-tag\">&lt;\u002FColumn\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n\u003Cspan class=\"shj-syn-tag\">&lt;\u002Fview\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n\u003Cspan class=\"shj-syn-tag\">&lt;rust\u003C\u002Fspan> explicit\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n\u003Cspan class=\"shj-syn-kwd\">use\u003C\u002Fspan> inrux\u003Cspan class=\"shj-syn-oper\">::\u003C\u002Fspan>prelude\u003Cspan class=\"shj-syn-oper\">::*\u003C\u002Fspan>;\n\n#[\u003Cspan class=\"shj-syn-func\">derive\u003C\u002Fspan>(\u003Cspan class=\"shj-syn-class\">Clone\u003C\u002Fspan>)]\n\u003Cspan class=\"shj-syn-kwd\">pub\u003C\u002Fspan> \u003Cspan class=\"shj-syn-kwd\">struct\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">State\u003C\u002Fspan> {\n    count\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> u32\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan>\n}\n\n\u003Cspan class=\"shj-syn-cmnt\">\u002F\u002F\u002F Initialize this component once for each mount.\n\u003C\u002Fspan>\u003Cspan class=\"shj-syn-kwd\">pub\u003C\u002Fspan> \u003Cspan class=\"shj-syn-kwd\">fn\u003C\u002Fspan> \u003Cspan class=\"shj-syn-func\">setup\u003C\u002Fspan>() \u003Cspan class=\"shj-syn-oper\">-&gt;\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">State\u003C\u002Fspan> {\n    \u003Cspan class=\"shj-syn-class\">State\u003C\u002Fspan> { count\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-num\">0\u003C\u002Fspan> }\n}\n\n\u003Cspan class=\"shj-syn-cmnt\">\u002F\u002F\u002F Handle clicks through the same state\u002Fevent API as automatic setup.\n\u003C\u002Fspan>\u003Cspan class=\"shj-syn-kwd\">fn\u003C\u002Fspan> \u003Cspan class=\"shj-syn-func\">increment\u003C\u002Fspan>(state\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">&#38;\u003C\u002Fspan>\u003Cspan class=\"shj-syn-kwd\">mut\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">State\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan> _\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">&#38;\u003C\u002Fspan>\u003Cspan class=\"shj-syn-class\">Context\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&lt;\u003C\u002Fspan>\u003Cspan class=\"shj-syn-class\">State\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>) {\n    state\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>count \u003Cspan class=\"shj-syn-oper\">+=\u003C\u002Fspan> \u003Cspan class=\"shj-syn-num\">1\u003C\u002Fspan>;\n}\n\u003Cspan class=\"shj-syn-tag\">&lt;\u002Frust\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n\u003Cspan class=\"shj-syn-tag\">&lt;style\u003C\u002Fspan> scoped\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n\u003Cspan class=\"shj-syn-var\">.counter\u003C\u002Fspan> {\n    \u003Cspan class=\"shj-syn-var\">padding\u003C\u002Fspan>: \u003Cspan class=\"shj-syn-num\">24\u003C\u002Fspan>\u003Cspan class=\"shj-syn-var\">px\u003C\u002Fspan>\u003Cspan class=\"shj-syn-num\">\u003C\u002Fspan>;\n    \u003Cspan class=\"shj-syn-var\">gap\u003C\u002Fspan>: \u003Cspan class=\"shj-syn-num\">16\u003C\u002Fspan>\u003Cspan class=\"shj-syn-var\">px\u003C\u002Fspan>\u003Cspan class=\"shj-syn-num\">\u003C\u002Fspan>;\n}\n\u003Cspan class=\"shj-syn-tag\">&lt;\u002Fstyle\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>\n",{"left":1037,"top":1037,"width":1038,"height":1038,"rotate":1037,"vFlip":491,"hFlip":491,"body":1039},0,24,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"\u002F>",1794980344037]