Published unlisted
Edited
Jun 21, 2020
Insert cell
Insert cell
Insert cell
viewof r1 = radio({
title: 'Contact Us',
description: 'Please select your preferred contact method',
options: [
{ label: 'By Email', value: 'email' },
{ label: 'By Phone', value: 'phone' },
{ label: 'By Pager', value: 'pager' },
],
})
Insert cell
r1
Insert cell
viewof r2 = Object.assign(radio({
options: [
{ label: 'By Email', value: 'email' },
{ label: 'By Phone', value: 'phone' },
{ label: 'By Pager', value: 'pager' },
],
}), {value: Promise.resolve("wow, thanks @mootari!")})
Insert cell
r2
Insert cell
Insert cell
viewof a1 = choose({
title: "Which are better, cats or dogs?",
options: [
{title: "Cats 🐈", value: "cats"},
{title: "Dogs 🐕", value: "dogs"}
]
})
Insert cell
a1
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more