MCPcopy Create free account
hub / github.com/audulus/rui / toggle_example

Function toggle_example

examples/gallery.rs:25–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25fn toggle_example() -> impl View {
26 hstack((
27 caption("toggle"),
28 state(|| false, |s, _| toggle(s).size([30.0, 30.0]).padding(Auto)),
29 ))
30}
31
32fn text_editor_example() -> impl View {
33 hstack((

Callers 1

mainFunction · 0.85

Calls 6

hstackFunction · 0.85
captionFunction · 0.85
stateFunction · 0.85
toggleFunction · 0.85
paddingMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected