TidalUI

Incident console preview

Coordinate one active incident with supplied impact, responders, service states and response updates.

pro · Blocks · composite

When to use

Alternatives

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

Installation

npx shadcn@latest add @tidal-pro/incident-console

Import components/ui/tidal.css, components/ui/incident-console.css. Wrap installed components in tidal-scope.

Preview

Incident console component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/incident-console.css";
import{TidalIncidentConsole}from"./components/ui/incident-console";
export default(p:Parameters<typeof TidalIncidentConsole>[0])=><div className="tidal-scope"><TidalIncidentConsole {...p}/></div>;

API and props

TidalIncidentConsole.affectedServices (required)
ReadonlyArray<TidalIncidentService>

Required affected services value accepted by this exported component.

TidalIncidentConsole.draft (required)
string

Required draft value accepted by this exported component.

TidalIncidentConsole.elapsed (required)
ReactNode

Required elapsed value accepted by this exported component.

TidalIncidentConsole.impact (required)
ReactNode

Required impact value accepted by this exported component.

TidalIncidentConsole.incidentId (required)
string

Required incident id value accepted by this exported component.

TidalIncidentConsole.phase (required)
TidalIncidentPhase

Required phase value accepted by this exported component.

TidalIncidentConsole.phaseLabel (required)
string

Required phase label value accepted by this exported component.

TidalIncidentConsole.responders (required)
ReadonlyArray<TidalIncidentResponder>

Required responders value accepted by this exported component.

TidalIncidentConsole.severity (required)
TidalIncidentSeverity

Required severity value accepted by this exported component.

TidalIncidentConsole.severityLabel (required)
string

Required severity label value accepted by this exported component.

TidalIncidentConsole.started (required)
ReactNode

Required started value accepted by this exported component.

TidalIncidentConsole.title (required)
ReactNode

Required title value accepted by this exported component.

TidalIncidentConsole.updates (required)
ReadonlyArray<TidalIncidentUpdate>

Required updates value accepted by this exported component.

TidalIncidentConsole.announcePhase
boolean | undefined

Optional announce phase value accepted by this exported component.

TidalIncidentConsole.description
ReactNode

Optional description value accepted by this exported component.

TidalIncidentConsole.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalIncidentConsole.formProps
IncidentFormProps | undefined

Optional form props value accepted by this exported component.

TidalIncidentConsole.formRef
Ref<HTMLFormElement> | undefined

Optional form ref value accepted by this exported component.

TidalIncidentConsole.headingLevel
TidalIncidentHeadingLevel | undefined

Optional heading level value accepted by this exported component.

TidalIncidentConsole.labels
TidalIncidentConsoleLabels | undefined

Optional labels value accepted by this exported component.

TidalIncidentConsole.links
ReadonlyArray<TidalIncidentLink> | undefined

Optional links value accepted by this exported component.

TidalIncidentConsole.onDraftChange
((value: string, event: ChangeEvent<HTMLTextAreaElement>) => void) | undefined

Callback invoked when the draft change interaction is proposed.

TidalIncidentConsole.onReopenRequest
((incidentId: string, event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the reopen request interaction is proposed.

TidalIncidentConsole.onResolveRequest
((incidentId: string, event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the resolve request interaction is proposed.

TidalIncidentConsole.onUpdateRequest
((incidentId: string, value: string, event: SubmitEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the update request interaction is proposed.

TidalIncidentConsole.pendingAction
"resolve" | "reopen" | "update" | null | undefined

The action whose consumer-owned request is currently pending.

TidalIncidentConsole.reopenButtonProps
ActionButtonProps | undefined

Optional reopen button props value accepted by this exported component.

TidalIncidentConsole.reopenButtonRef
Ref<HTMLButtonElement> | undefined

Optional reopen button ref value accepted by this exported component.

TidalIncidentConsole.resolveButtonProps
ActionButtonProps | undefined

Optional resolve button props value accepted by this exported component.

TidalIncidentConsole.resolveButtonRef
Ref<HTMLButtonElement> | undefined

Optional resolve button ref value accepted by this exported component.

TidalIncidentConsole.updateButtonProps
SubmitButtonProps | undefined

Optional update button props value accepted by this exported component.

TidalIncidentConsole.updateButtonRef
Ref<HTMLButtonElement> | undefined

Optional update button ref value accepted by this exported component.

TidalIncidentConsole.updateInputProps
UpdateInputProps | undefined

Optional update input props value accepted by this exported component.

TidalIncidentConsole.updateInputRef
Ref<HTMLTextAreaElement> | undefined

Optional update input ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas