RobotRock
Action widgets

Radio

  • Use when: single choice from enum values
  • ui:options: inline: true | false (layout as multi-column cards on wider screens)
schema: {
  type: "object",
  properties: {
    decision: {
      type: "string",
      enum: ["approve", "reject", "needs_changes"],
    },
  },
}
ui: {
  decision: {
    "ui:widget": "radio",
    "ui:options": { inline: true },
  },
}

Inbox preview

Rendered by the dashboard (static preview route). Matches docs light/dark mode. Handle actions are disabled; use the toolbar to submit this example to your inbox or view its configuration.

Action

{
  "id": "submit",
  "title": "Submit",
  "description": "Single choice from enum values",
  "schema": {
    "type": "object",
    "properties": {
      "decision": {
        "type": "string",
        "title": "Decision",
        "enum": [
          "approve",
          "reject",
          "needs_changes"
        ]
      }
    }
  },
  "ui": {
    "decision": {
      "ui:widget": "radio",
      "ui:options": {
        "inline": true
      }
    }
  }
}

See also

This widget also appears in the full Document Access Request task example.