Skip to content
PixiKit

Try Panel

A try-it console for one operation. It shows a live URL, typed fields with checks, an optional API key, Send and Cancel, and the response with status, time, size, a folding body and headers. It never calls the network itself.

pixikit.com/docs/app-ui/docs/try-panel

Customize

Method
Body mode
Layout
History3

Props

13
NameTypeDefaultDescription
methodTryMethodRequiredThe HTTP method of the operation.
pathstringRequiredThe path; `{id}` and `:id` are filled from path fields.
baseUrlstring""The address shown and used before the path.
fieldsTryField[][]The inputs of the request.
authTryAuthNoneAdds a key field that is sent in a header.
onSend(request: TryRequest) => Promise<TryResponse>RequiredSends the request; the panel never calls the network itself.
valuesRecord<string, TryValue>NoneThe field values, when you hold the state; keyed by field name.
defaultValuesRecord<string, TryValue>NoneThe field values at first, when the panel holds the state.
onValuesChange(values: Record<string, TryValue>) => voidNoneCalled with all field values after a change.
bodyMode"form" | "json""form"Whether the body is edited as a form or as JSON text.
layout"auto" | "split" | "stack""auto"`split` puts the response beside the request, `stack` under it, `auto` follows the container width.
historynumber3How many past responses to keep as chips.
classNamestringNone

Related