DatePicker
A controlled native date or date-and-time picker.
#Import
Import DatePicker from @quickgui/solid/swift-ui.
import { Host, DatePicker } from "@quickgui/solid/swift-ui";#Usage
<Host matchContents>
<DatePicker
label="Schedule"
value={scheduledAt()}
displayedComponents="dateAndTime"
style="field"
onValueChange={setScheduledAt}
/>
</Host>#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
DatePicker
View sourceDatePicker(props: DatePickerProps): NativeNodetestIDstring—
modifiersViewModifier[]—
valueDate—
minDate—
maxDate—
labelstring—
displayedComponentsDatePickerComponents—
Declares displayedComponents (optional). Reactive JSX expressions update this property in place.
DatePickerComponentsView sourcestyleDatePickerStyle—
Layout, typography, paint, and interaction-state styles. Arrays merge left to right.
DatePickerStyleView sourceonValueChange(value: Date, event: QuickGuiEvent) => void—
Declares onValueChange (optional). Reactive JSX expressions update this property in place.
(value: Date, event: QuickGuiEvent) => voidView sourceref((node: NativeNode) => void) | NativeNode—
Declares ref (optional). Reactive JSX expressions update this property in place.
((node: NativeNode) => void) | NativeNodeView source