Basic Usage
El component SegmentData permet seleccionar origen, destinació, data i hora per a un segment de vol. Suporta mode fosc i clar, i manté compatibilitat amb l'API legacy.
With Default Values
Exemple amb valors per defecte pre-seleccionats.
API Reference
interface SegmentDataProps { originDefault?: LegacyLocation; destinationDefault?: LegacyLocation; dateTimeDefault?: Date; onGetOriginData?: (filter: string) => LegacyLocation[]; onGetDestinationData?: (filter: string) => LegacyLocation[]; onOriginLocationSelected?: (location: LegacyLocation) => void; onDestinationLocationSelected?: (location: LegacyLocation) => void; onDateSelected?: (date: Date) => void; onTimeSelected?: (time: Date) => void; dataTestId?: string; className?: string; }