viewof form = Inputs.form({
toggles: list([Inputs.toggle({ label: "Foo", value: true }),
Inputs.toggle({ label: "Bar", value: false }),
Inputs.toggle({ label: "Baz", value: true })],
{ columns: 3, label: "toggles" }),
mat3: list(d3.range(9).map(() => Inputs.range([0,1], { value: Math.random(), step: .001 })),
{ columns: 3, label: "mat3" }),
mat2x3: list(d3.range(6).map(() => Inputs.range([0,1], { value: Math.random(), step: .001 })),
{ columns: 2, label: "mat2x3" }),
vec4: list(d3.range(4).map(() => Inputs.range([0,1], { value: Math.random(), step: .001 })),
{ columns: 4, label: "vec4" }),
dates: list([Inputs.date({ value: "2021-09-21" }), Inputs.date({ value: "2022-09-21" })],
{ columns: 2, label: "dates" }),
colors: list([Inputs.color({ value: "#628493" }), Inputs.color({ value: "#dba4a4" }), Inputs.color({ value: "#f09494" })],
{ columns: 3, label: "colors" }),
})