gradio/js/paramviewer/Index.svelte
Abubakar Abid b736c8db34
Refactor gr.ParamViewer to use HTML <details> and other tweaks (#8744)
* changes

* changes

* revert demo change

* add changeset

* changes

* format

* fixes

* param viewer

* update demo

* add changeset

* docstrings

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-10 17:58:28 -07:00

18 lines
317 B
Svelte

<script lang="ts">
import ParamViewer from "./ParamViewer.svelte";
export let value: Record<
string,
{
type: string;
description: string;
default: string;
}
>;
export let linkify: string[] = [];
export let header: string | null = null;
</script>
<ParamViewer docs={value} {linkify} {header} />