Skip to content
PixiKit

Code Stage

A developer feature section: text with a short list of points beside a code window with file tabs that type the code in, a copy button and a Run button that prints a result pane under the code.

pixikit.com/docs/blocks/features/code-stage

Customize

Typing
Line numbers
Side

Props

13
NameTypeDefaultDescription
eyebrowstring"Acme SDK"Small label above the heading. Leave empty for none.
headingstring"From install to first order in three steps"The heading of the section. Leave empty for none.
leadstring"Copy a command, make a call, read the answer. Press Run to see what comes back."The line under the heading. Leave empty for none.
pointsstring[]DEFAULT_POINTSShort points listed under the text.
filesCodeStageFile[]DEFAULT_FILESThe files, one tab each.
typingbooleantrueType the code in when a file first shows.
lineNumbersbooleantrueShow a number beside each line.
copyLabelstring"Copy"Label of the copy button.
copiedLabelstring"Copied"Label of the copy button for a moment after copying.
runLabelstring"Run"Label of the run button.
outputLabelstring"Output"Title of the pane that holds the output.
side"left" | "right""right"Which side of the text the code window sits on, in a wide container.
classNamestringNone

Related