TidalUI

Uptime history preview

Browse exact consumer-supplied daily availability, duration and incident context without calculating an uptime claim.

pro · Data · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/uptime-history

Import components/ui/tidal.css, components/ui/uptime-history.css. Wrap installed components in tidal-scope.

Preview

Uptime history component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/uptime-history.css";
import{TidalUptimeHistory}from"./components/ui/uptime-history";
export default()=><div className="tidal-scope"><TidalUptimeHistory periods={[{id:"example",dateLabel:"Demo",status:"operational"}]} summary={"Demo"} title={"Demo"}/></div>;

API and props

TidalUptimeHistory.periods (required)
ReadonlyArray<TidalUptimePeriod>

Required periods value accepted by this exported component.

TidalUptimeHistory.summary (required)
ReactNode

Required summary value accepted by this exported component.

TidalUptimeHistory.title (required)
ReactNode

Required title value accepted by this exported component.

TidalUptimeHistory.activePeriodId
string | null | undefined

Optional active period id value accepted by this exported component.

TidalUptimeHistory.defaultActivePeriodId
string | null | undefined

Optional default active period id value accepted by this exported component.

TidalUptimeHistory.description
ReactNode

Optional description value accepted by this exported component.

TidalUptimeHistory.emptyContent
ReactNode

Optional empty content value accepted by this exported component.

TidalUptimeHistory.headingLevel
"h2" | "h3" | "h4" | "h5" | "h6" | undefined

Optional heading level value accepted by this exported component.

TidalUptimeHistory.labels
Partial<TidalUptimeHistoryLabels> | undefined

Optional labels value accepted by this exported component.

TidalUptimeHistory.nextButtonProps
NativeInspectorButtonProps | undefined

Optional next button props value accepted by this exported component.

TidalUptimeHistory.nextButtonRef
Ref<HTMLButtonElement> | undefined

Optional next button ref value accepted by this exported component.

TidalUptimeHistory.onActivePeriodChange
((periodId: string, period: TidalUptimePeriod, source: TidalUptimeInspectSource, event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the active period change interaction is proposed.

TidalUptimeHistory.previousButtonProps
NativeInspectorButtonProps | undefined

Optional previous button props value accepted by this exported component.

TidalUptimeHistory.previousButtonRef
Ref<HTMLButtonElement> | undefined

Optional previous button ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas