Preview
Loading preview…
root = Stack("Above the line", Separator(), "Below the line")Signature
This is the line a model reads in the system prompt.
Separator()- Group: Layout
- Children: No
- 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({ Separator: MySeparator });
<GistUI library={lib} stream={response.body} />;<GistUI :source="answer" :components="{ Separator: MySeparator }" /><GistUI source={answer} components={{ Separator: MySeparator }} /><GistUI source={answer()} components={{ Separator: MySeparator }} />import { ui } from "@gistui/vanilla/ui";
const lib = ui.extend({ Separator: (ctx) => ({ el: myElement(ctx) }) });See Custom components for the full contract. Style hook: [data-gistui="Separator"].