UNPKG

@medalsocial/meda

Version:

Shared Meda UI shell and runtime package.

19 lines (18 loc) 891 B
import type { ReactNode } from 'react'; import type { LaneTimelineLabels, LaneTimelineRange, TimeTick } from './lane-timeline-types.js'; export interface TimeAxisProps { range: LaneTimelineRange; onRangeChange: (range: LaneTimelineRange) => void; selectedDate: Date; onDateChange: (date: Date) => void; /** Reference time used to determine whether `selectedDate` is "today" in the header label. */ now: Date; title?: ReactNode; groupChip?: ReactNode; activeCount?: number; labels: LaneTimelineLabels; ticks: TimeTick[]; /** Width of the lane-label gutter on the left, in px (matches Lane component). */ labelGutterPx: number; } export declare function TimeAxis({ range, onRangeChange, selectedDate, onDateChange, now, title, groupChip, activeCount, labels, ticks, labelGutterPx, }: TimeAxisProps): import("react/jsx-runtime").JSX.Element;