Skip to content

Slider

Gen UI 2.0 standard

A range slider for a number between min and max. Bind value with { "@path": "/x" } to read the number. Give it a label.

One of the 69 components in CopilotKit's standardUI. The playground's catalog extends it, so every agent here can use Slider. Standard catalog docs

Props

Read from standardUI.manifestComponents in the installed @copilotkit/react-core. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.

PropTypeRequiredDescription
labelstringNoThe visible label of the field. Always set it
valuenumberNoBind it with { "@path": "/x" } to read the number
minnumberNoDefault 0
maxnumberNoDefault 100
checks{ condition?, message? }[]NoValidation rules. The control shows the first failed one
stepnumberNoDefault 1
stepsintegerNoThe number of equal divisions between min and max, instead of step
unitstringNoUnit after the value, for example "%"
marks{ value, label? }[]No-
sliderStyle"continuous" | "discrete"NoDefault "continuous"
disabledbooleanNo-
namestringNo-
weightnumberNoflex-grow in a Row or Column