redoc/playground/Playground.tsx
Alex Varchuk c01c6876f2
feat: initialize release candidate for v3.0.0
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
Co-authored-by: Alex Varchuk <olexandr.varchuk@gmail.com>
Co-authored-by: Oprysk Vyacheslav <vyacheslav@redocly.com>
Co-authored-by: Ivan Kropyvnytskyi <130547411+ivankropyvnytskyi@users.noreply.github.com>
Co-authored-by: Yevhen Pylyp <yevhen.pylyp@redocly.com>
Co-authored-by: Vladyslav Makarenko <vladyslav.makarenko@redocly.com>
Co-authored-by: Yevhenii Medviediev <yevhenii.medviediev@redocly.com>
Co-authored-by: Oleksii Horbachevskyi <oleksii.horbachevskyi@redocly.com>
Co-authored-by: volodymyr-rutskyi <rutskyi.v@gmail.com>
Co-authored-by: Adam Altman <adam@redoc.ly>
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
Co-authored-by: Anastasiia Derymarko <anastasiia@redocly.com>
Co-authored-by: Roman Marshevskyy <roman.marshevskyy@redoc.ly>
Co-authored-by: Lorna Mitchell <lorna.mitchell@redocly.com>
Co-authored-by: Taylor Krusen <taylor.krusen@redocly.com>
2025-10-24 17:40:43 +02:00

36 lines
1.0 KiB
TypeScript
Executable File

import React from 'react';
import type { ReactElement } from 'react';
import type { LayoutVariant } from '@redocly/config';
import { RedoclyOpenAPIDocs } from '../src/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js';
import { AppProvider } from '../src/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsStandalone.js';
export function Playground(): ReactElement {
return (
<React.StrictMode>
<AppProvider
definitionUrl="./openapi/museum.yaml"
options={{
layout: 'three-panel' as LayoutVariant,
downloadUrls: [
{
title: 'Download Museum OpenAPI description',
url: './openapi/museum.yaml',
},
{
title: 'Download Petstore OpenAPI description',
url: './openapi/petstore.yaml',
},
],
showExtensions: true,
}}
>
<RedoclyOpenAPIDocs withCommonStyles={true} />
</AppProvider>
</React.StrictMode>
);
}
export default Playground;