Skip to content

Vizel API / react/src / VizelSaveIndicator

Function: VizelSaveIndicator()

ts
function VizelSaveIndicator(__namedParameters): Element;

Defined in: packages/react/src/components/VizelSaveIndicator.tsx:36

Visual indicator for the current save state of the editor.

The status → display mapping (icon, text, timestamp visibility) lives in @vizel/core's resolveVizelSaveIndicatorView. The relative-time interval comes from createVizelRelativeTimeTicker. The component is just the React-flavored binding.

Parameters

ParameterType
__namedParametersVizelSaveIndicatorProps

Returns

Element

Example

tsx
<VizelSaveIndicator status={status} lastSaved={lastSaved} showTimestamp />

Released under the MIT License.