Prop Controls
A panel of hand-written controls driven by a schema: a ruler slider, colour, colour list, select, switch and text, for any demo or playground page.
pixikit.com/docs/components/prop-controls
Customize
Columns3
Width640px
Props
7| Name | Type | Default | Description |
|---|---|---|---|
controls | ControlSpec[] | CONTROLS | The controls, in order. |
values | Record<string, unknown> | None | The values by name, for a controlled panel. |
defaultValues | Record<string, unknown> | VALUES | The starting values by name when uncontrolled. |
onChange | (name: string, value: unknown) => void | None | Called with a control's name and its new value. |
columns | number | 3 | The most controls in a row; fewer fit when the panel is narrow. Text and colour lists take two. |
width | number | 640 | The panel's largest width in pixels; it shrinks with a narrower container. |
className | string | None |