SegmentedProps
Segmented control: one of a few views or filters, the selected segment raised on control. A radio group to assistive tech; onChange gets the option.
type SegmentedProps<T extends string> = Omit<PrimitiveProps<'div'>, 'as' | 'onChange' | 'children'> & {
options: readonly T[]
value: T
onChange: (value: T) => void
}API reference
type SegmentedProps<T extends string> = Omit<PrimitiveProps<'div'>, 'as' | 'onChange' | 'children'> & {
options: readonly T[]
value: T
onChange: (value: T) => void
}Related types
SelectPropsNative select drawn like `TextField`, so a form's pop-up and its fields line up. Children are `<option>`s.SheetPropsA modal card over the app. It is a non-modal `<dialog>` on purpose: `showModal` would lift the card into the top layer, and Chromium hit-tests top-layer content at its untransformed position - inside the scene's preserve-3d transform every point lands behind the card, dead to the finger. The `open` attribute keeps it in the transformed tree where hit-testing is honest, and the scrim, Escape and closing are drawn by hand. Closing is held back until the card has shrunk away, so it leaves the way it came.Align