Skip to content

Spacer

Pushes siblings apart.

Updated View as Markdown
Preview

Loading preview…

root = Row(Header("Team", size:sm), Spacer(), Button("Invite", icon:users))

Signature

This is the line a model reads in the system prompt.

Spacer()
  • 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({ Spacer: MySpacer });
<GistUI library={lib} stream={response.body} />;
<GistUI :source="answer" :components="{ Spacer: MySpacer }" />
<GistUI source={answer} components={{ Spacer: MySpacer }} />
<GistUI source={answer()} components={{ Spacer: MySpacer }} />
import { ui } from "@gistui/vanilla/ui";

const lib = ui.extend({ Spacer: (ctx) => ({ el: myElement(ctx) }) });

See Custom components for the full contract. Style hook: [data-gistui="Spacer"].

Navigation

Type to search…

↑↓ navigate↵ selectEsc close