redoc-svelte
v0.2.3
Published
[![npm](http://img.shields.io/npm/v/redoc-svelte.svg)](https://www.npmjs.com/package/redoc-svelte) [![License](https://img.shields.io/npm/l/redoc-svelte.svg)](https://github.com/matteopolak/redoc-svelte/blob/main/LICENSE)
Downloads
7
Readme
Redoc Svelte
A drop-in Svelte component for Redoc.
pnpm add redoc-svelte
yarn add redoc-svelte
npm install redoc-svelte
[!IMPORTANT]
redoc-svelte
is not compatible with SvelteKit v1, please use v2 instead.
Usage
For more examples, see the Redoc documentation.
<script>
import { RedocStandalone } from 'redoc-svelte';
</script>
<RedocStandalone
specUrl="https://redocly.github.io/redoc/openapi.yaml"
options={{
nativeScrollbars: true,
theme: { colors: { primary: { main: '#dd5522' } } },
}}
on:loaded={e => console.log('loaded', e?.detail)}
/>
License
This project is licensed under the MIT License. See LICENSE for details.