Skip to content

Commit

Permalink
Fix typo in example code for radio button input (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsayevanslee authored Oct 9, 2022
1 parent 3281a4a commit 238639f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ The available *options* are:
[<img src="./img/radio.png" alt="A single-choice Radio input of colors" width="640">](https://observablehq.com/@observablehq/input-radio)

```js
viewof color = Inputs.radio(["red", "green", "blue"]), {label: "Color"})
viewof color = Inputs.radio(["red", "green", "blue"], {label: "Color"})
```

[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.
Expand Down

0 comments on commit 238639f

Please sign in to comment.