浏览代码

Add some radio buttons to the form example

Joshua Kifer 3 年之前
父节点
当前提交
ae2e8a8038
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/form.rs

+ 2 - 0
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" }
                 }
             }