Skip to content
Design System
GitHub

Choice field

v0.15.1

A choice as a whole tappable row (checkbox, radio or switch with label, description and count); FieldSet groups them under one question.

API reference

Generated from the types. Every part also takes className.

FieldSet

legendrequired
ReactNode
hint
ReactNode
error
ReactNode
childrenrequired
ReactNode

ChoiceField

labelrequired
ReactNode
description
ReactNode
controlrequired
ReactElementA Checkbox, RadioGroupItem or Switch.
trailing
ReactNodeA count or a value at the end of the row.
controlAt
"end" | "start" = "start"