Preview
Loading preview…
root = Tags(Tag("React"), Tag("Vue"), Tag("Svelte"), Tag("Solid"))Signature
This is the line a model reads in the system prompt.
Tags(...Tag)- Group: Content
- Children: Yes: Tag
- Positional arguments: none
Props
This component takes no props.
Use your own component
Keep the name and schema, swap what is drawn. The prompt and the model’s output do not change.
import { ui } from "@gistui/react/ui";
const lib = ui.extend({ Tags: MyTags });
<GistUI library={lib} stream={response.body} />;<GistUI :source="answer" :components="{ Tags: MyTags }" /><GistUI source={answer} components={{ Tags: MyTags }} /><GistUI source={answer()} components={{ Tags: MyTags }} />import { ui } from "@gistui/vanilla/ui";
const lib = ui.extend({ Tags: (ctx) => ({ el: myElement(ctx) }) });See Custom components for the full contract. Style hook: [data-gistui="Tags"].