Customizing the ResultDisplay
Component in API Playground
#1232
-
Hi, Is there a way to add this component using a CLI or some other method? Essentially, I want to retain all the functionality of API Playground but modify the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The playground is a single component which isn't customisable, you probably need to clone and modify it I can expose more options if applicable |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response - I used // source.tsx
export const openapi = createOpenAPI({
renderer: {
APIPlayground: (props) => <CustomAPIPlayground {...props} />
},
}); // custom-api-playground.tsx
...
return (
<>
<FumaAPIPlayground {...props} onQueryFinish={handleQueryFinish} renderResult={false}/>
{response ? <APIResponse data={response} /> : null}
</>
); |
Beta Was this translation helpful? Give feedback.
The playground is a single component which isn't customisable, you probably need to clone and modify it
I can expose more options if applicable