Skip to main content
.pickerStyle(style: PickerStyle): Component;

Parameters

style
PickerStyle
The picker style to apply.

Support

Usage

Segmented picker

const selectedSize = useState("M")

Picker("Size", selection: selectedSize, content: () => [
    Text("Small").tag("S"),
    Text("Medium").tag("M"), 
    Text("Large").tag("L")
]).pickerStyle("segmented")
const country = useState("US")

Picker("Country", selection: country, content: () => [
    Text("United States").tag("US"),
    Text("Canada").tag("CA"),
    Text("Mexico").tag("MX")
]).pickerStyle("menu")