Rxova
Skip to content

TimeSegmentState

Per-segment state, for the renderSegment render prop.

focused: boolean;

This segment currently has focus.


max: number;

min: number;

text: string;

What is painted — the padded value, the day-period word, or the placeholder.


type: TimeSegment;

value: number | null;

null while the segment is empty. For dayPeriod, 0 is AM and 1 is PM.