gradio/js/paramviewer/Index.svelte
Abubakar Abid 35fda36de9
Add an anchor_links parameter to gr.ParamViewer that allows linking to specific parameters. (#10495)
* changes

* revert

* add changeset

* changes

* add changeset

* fix conflicts with random hash

* pass a string to anchor_links

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2025-02-04 17:14:54 -08:00

19 lines
366 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;
export let anchor_links = false;
</script>
<ParamViewer docs={value} {linkify} {header} {anchor_links} />