Add some radio buttons to the form example
This commit is contained in:
1 parent
ab4e37fbf2
commit
ae2e8a8038
1 file changed
+2
@@ -20,6 +20,8 @@ fn app(cx: Scope) -> Element {
|
|||||||
input { r#type: "text", name: "username" }
|
input { r#type: "text", name: "username" }
|
||||||
input { r#type: "text", name: "full-name" }
|
input { r#type: "text", name: "full-name" }
|
||||||
input { r#type: "password", name: "password" }
|
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" }
|
button { r#type: "submit", value: "Submit", "Submit the form" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user