Skip to main content
These modifiers configure the visual presentation of interactive controls. controlSize scales buttons, progress views, and similar components across a discrete set of sizes; pickerStyle switches a Picker between segmented, wheel, menu, and other layouts; buttonStyle applies a fully custom rendering to a Button via defineButtonStyle. Apply these modifiers to a single control or to a container — controlSize and buttonStyle propagate to descendant controls in the hierarchy.

controlSize

Sets the size for controls like buttons and progress views.
"mini" | "small" | "regular" | "large" | "extraLarge"
required
The control size to apply. Affects the visual size and padding of supported controls.
Small progress view
Large control group
Mini spinner

pickerStyle

Sets the display style for a Picker component.
PickerStyle
required
The visual style for the picker. See PickerStyle.Options: "automatic", "segmented", "inline", "menu", "navigationlink", "palette", "radiogroup", "wheel".
Segmented picker
Wheel picker
Menu picker

buttonStyle

Applies a custom button style to a Button component.
ButtonStyleComponent
required
A custom button style component created with defineButtonStyle. The style controls how the button renders in its various states (normal, pressed).
Apply a custom button style

See also