Parameters
The picker style to apply.
Sets the style for picker components.
.pickerStyle(style: PickerStyle): Component;
Show PickerStyle Values
"automatic" - Uses the default picker style for the platform"segmented" - Displays options as a segmented control"menu" - Presents options in a popup menuconst 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")