Appearance
io.group
Use groups to render multiple input components in an action, such as forms with multiple inputs.
Usage
ts
const { name, email, age } = await io.group({
name: io.input.text("Name"),
email: io.input.email("Email"),
});
// array destructuring works as well
const [name, email, age] = await io.group(
(name = io.input.text("Name")),
(email = io.input.email("Email")),
);
python
data = await io.group([
await io.input.text("Name"),
await io.input.text("Email"),
])
name, email = data.values()