Skip to content
PixiKit

Prompt to Page

A prompt types itself, pieces get picked from a small library and a page fills in slot by slot, while the steps beside it light up in sync.

pixikit.com/docs/blocks/demos/prompt-to-page

Customize

Cycle12s
Accent color

Props

10
NameTypeDefaultDescription
promptstring"a launch page for my app, with pricing"The request that types itself into the prompt bar.
stepsstring[]["Describe the page you want.", "The right blocks get picked.", "The code is yours to change."]The steps on the left; each lights up in turn as the story plays.
librarystring[]["Hero", "Logo cloud", "Stats", "Bento", "Pricing", "Team", "FAQ", "Footer", "Testimonials", "Banner", "Newsletter", "Contact"]The names on the mini wall of pieces to choose from.
picksstring[]["Hero", "Stats", "Pricing", "FAQ"]The pieces that get picked, in order; each fills one slot of the page.
doneLabelstring"Page built from {count} blocks"The note that slides up once the page is built; `{count}` becomes the number of picks.
cyclenumber12How long one run of the story takes, in seconds.
accentColorstring"#7c3aed"The colour of the caret, the picks and the done tick.
titlestring"From prompt to page"The heading above the demo.
descriptionstring"Describe the page in plain words and watch it come together, one block at a time."The line under the heading.
classNamestringNone

Related