Skip to content
PixiKit

Response Tabs

Example responses by status code. Tabs with a coloured dot and a sliding marker, a collapsible headers section, a JSON tree that folds, truncates long strings and copies values, a raw view, and a schema view.

pixikit.com/docs/app-ui/docs/response-tabs

Customize

Default value
Default view
Collapsed depth2
Copy
Max height360px

Props

12
NameTypeDefaultDescription
responsesApiResponse[]RequiredThe responses, one tab each.
valuenumberNoneThe open status code, when you hold the state.
defaultValuenumberNoneThe status code open at first, when the tabs hold the state.
onValueChange(status: number) => voidNoneCalled with the status code the user opens.
view"example" | "schema"NoneWhich view of a response is shown, when you hold the state.
defaultView"example" | "schema""example"The view shown at first, when the tabs hold the state.
onViewChange(view: "example" | "schema") => voidNoneCalled with the view the user picks.
collapsedDepthnumber2JSON nested deeper than this many levels starts folded.
copybooleantrueShows the copy button.
maxHeightnumberNoneThe tallest the body gets in px; it scrolls inside.
titlestringNoneA name shown before the tabs.
classNamestringNone

Related