Skip to content

Commit 238639f

Browse files
Fix typo in example code for radio button input (#239)
1 parent 3281a4a commit 238639f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ The available *options* are:
138138
[<img src="./img/radio.png" alt="A single-choice Radio input of colors" width="640">](https://observablehq.com/@observablehq/input-radio)
139139

140140
```js
141-
viewof color = Inputs.radio(["red", "green", "blue"]), {label: "Color"})
141+
viewof color = Inputs.radio(["red", "green", "blue"], {label: "Color"})
142142
```
143143

144144
[Source](./src/checkbox.js) · [Examples](https://observablehq.com/@observablehq/input-radio) · A Radio allows the user to choose one of a given set of values. Unlike a [Select](#Select), a Radio’s choices are all visible up-front. The Radio’s value is an element from *data*, or null if no choice has been made.

0 commit comments

Comments
 (0)