From ae2e8a803895d561701462e3257c7747b280be10 Mon Sep 17 00:00:00 2001 From: Joshua Kifer Date: Sat, 19 Mar 2022 17:05:48 -0600 Subject: [PATCH] Add some radio buttons to the form example --- examples/form.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/form.rs b/examples/form.rs index 3637826da..3b8d470b3 100644 --- a/examples/form.rs +++ b/examples/form.rs @@ -20,6 +20,8 @@ fn app(cx: Scope) -> Element { input { r#type: "text", name: "username" } input { r#type: "text", name: "full-name" } input { r#type: "password", name: "password" } + input { r#type: "radio", name: "color", value: "red" } + input { r#type: "radio", name: "color", value: "blue" } button { r#type: "submit", value: "Submit", "Submit the form" } } }