Form input component in the Observable Framework — combine multiple inputs.
Observable Framework documentation: Input: Form Source: https://observablehq.com/framework/input-form
<a href="https://github.com/observablehq/inputs/blob/main/README.md#inputsforminputs-options">API</a> · <a href="https://github.com/observablehq/inputs/blob/main/src/form.js">Source</a> · The form input combines a number of inputs into a single compound input. It’s intended for a more compact display of closely-related inputs, say for a color’s red, green, and blue channels.
const rgb = view(Inputs.form([
Inputs.range([0, 255], {step: 1, label: "r"}),
Inputs.range([0, 255], {step: 1, label: "g"}),
Inputs.range([0, 255], {step: 1, label: "b"})
]));
rgb
You can pass either an array of inputs to Inputs.form, as shown above, or a simple object with enumerable properties whose values are inputs. In the latter case, the value of the form input is an object with the same structure whose values are the respective input’s value.
const rgb2 = view(Inputs.form({
r: Inputs.range([0, 255], {step: 1, label: "r"}),
g: Inputs.range([0, 255], {step: 1, label: "g"}),
b: Inputs.range([0, 255], {step: 1, label: "b"})
}));
rgb2
Inputs.form(inputs, options)
The available form input options are:
If the template object is not specified, the given inputs are wrapped in a DIV.
npx skills add spqw/Observable Framework 输入:表单 (observable-framework-input-form)下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer