Magoo Component UI logo Magoo Component UI
← Catalog

Try-it Console

try-it-console organism experimental

A live API request-builder skeleton - method + URL bar, Params/Headers/Body tabs, and a response area.

Also in: Forms

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default

Response

HTTP/1.1 200 OK

{
  "object": "list",
  "has_more": true,
  "data": [
    { "id": "ch_1M8a", "amount": 4200, "status": "succeeded" }
  ]
}
Post

Response

HTTP/1.1 201 Created

{
  "id": "ch_1M8b",
  "amount": 4200,
  "currency": "usd",
  "status": "succeeded"
}

Props

NameTypeReq
method enum (get | post | put | patch | delete)
url string ✓
sample_response string

Related components

How to use

behavior.js reads data-method from the root and applies it to the method select on init. Clicking a tab shows its panel and hides the others (with arrow-key roving-tabindex navigation across the tabs); clicking Send dispatches a bubbling "console:send" CustomEvent whose detail carries the current { method, url } so an integrating app can run the request and render the real response. The portable self-init passes no props object - all config comes from the data-method attribute.

Use cases

interactiveform WCAG AA SEO 25 dir: both ai-generated