ROOFTOP FORECAST · UNITS
Temperature unit: °C
interface QBtnGroupProps extends HTMLAttributes<HTMLDivElement>
?: boolean = false?: boolean = false?: boolean = undefined?: "round" | "squared" = "round"?: QBtnSizeOptions = undefined
?: boolean = undefinedinterface QBtnToggleProps extends Omit<HTMLAttributes<HTMLDivElement>, "children">
?: boolean = undefined?: boolean = true?: boolean = false?: boolean = undefined?: boolean = false: QBtnToggleOption[] = undefined
?: "round" | "squared" = "round"?: QBtnSizeOptions = undefined
?: boolean = undefined?: QBtnToggleValue | QBtnToggleValue[] = $bindable(undefined)
?: Exclude<QBtnVariantOptions, "flat"> = "tonal"
QBtnToggle manages selection from an options array. Give options
unique string or number values and bind value to change the view. A single choice
stays selected by default. Try baseline segmented buttons or expressive groups; large groups
scroll inside the example.Now: 18°C
Baseline groups are always connected, with a 40px minimum height. Expressive groups
support xs through xl, round or squared shapes, and four
variants. When omitted, expressive follows Quaff.init()'s
setting; spread defaults to true for expressive connected groups and false otherwise.
multiple with an array of values. Multiple groups allow an empty
selection by default; clearable={false} preserves the final selected
option. Initialize a required group with a valid value. A clearable single group returns undefined when its selected option is pressed again.Readings: Wind, Rain
Cloud cover · 35%
Rain radar is offline. Its option stays visible and disabled.
connected={false} separates expressive toggle buttons. Icon-only options
need an aria-label; set disabled on an individual option when it is
unavailable.
aria-pressed. Keep labels stable as selections change, and name each
group with aria-label. The container itself is not a focus stop. See the
Material guidance for button groups and segmented buttons.