Components
TimelineView
TimelineView re-renders its content on a fixed cadence, matching SwiftUI's scheduled-update mental model with a simple interval-based web adaptation.
TimelineView re-renders its content on a fixed cadence, matching SwiftUI's scheduled-update mental model with a simple interval-based web adaptation.
Examples
Examples
Preview unavailable for this example in the static docs build.
Show code
<TimelineView {...args}>
{(date) => <output>{date.toLocaleTimeString()}</output>}
</TimelineView>API
| Prop | Type | Required | Description |
|---|---|---|---|
interval | number | Yes | No description yet. |
children | (date: Date) => ReactNode | Yes | No description yet. |
Inherits additional props from Omit<IBaseComponent, 'children'>.
TimelineView re-renders its content on a fixed cadence, matching SwiftUI's scheduled-update mental model with a simple interval-based web adaptation.
Status: adapted
SwiftUI Correspondence: Adapted from SwiftUI's TimelineView.
Notes
- The current web implementation uses
setInterval. - The child render function receives the latest
Datefor each tick.