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| Name | Type | Default | Description |
|---|---|---|---|
eyebrow | string | "Acme SDK" | Small label above the heading. Leave empty for none. |
heading | string | "From install to first order in three steps" | The heading of the section. Leave empty for none. |
lead | string | "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. |
points | string[] | DEFAULT_POINTS | Short points listed under the text. |
files | CodeStageFile[] | DEFAULT_FILES | The files, one tab each. |
typing | boolean | true | Type the code in when a file first shows. |
lineNumbers | boolean | true | Show a number beside each line. |
copyLabel | string | "Copy" | Label of the copy button. |
copiedLabel | string | "Copied" | Label of the copy button for a moment after copying. |
runLabel | string | "Run" | Label of the run button. |
outputLabel | string | "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. |
className | string | None |