Skip to components
DEVELOPER REFERENCE

BackupHistory API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

BackupHistory6 props3 callbacks0 methods

Preset and CSS

Set preset.className to attach your CSS class to the component's rendered surface. Explicit component props take precedence over preset options.

CSS parts in the example [data-part="actions"] [data-part="rail"] [data-part="root"] [data-part="scrubber"] [data-part="snapshot"] [data-part="status"] [data-part="track"]

Use styles.root and styles.parts in a theme and generate a CSS file with themeToCss. For other JSON-friendly component props, spread presetProps(preset) before explicit props. Parts and states depend on configuration; the gallery shows those visible in the current preview.

Props6

BackupHistory props
NameTypeDescription
labelRequiredstringAccessible title for the history region.
snapshotsRequired
readonly BackupSnapshot[]Inspect type
Snapshots ordered from oldest to newest.
valueOptionalstring | undefinedControlled snapshot ID. Initially selects the newest snapshot when omitted.
labelsRequired
BackupHistoryLabelsInspect type
Localized navigation, preview and restore strings.
presetOptional
ClassPreset | undefinedInspect type
Optional presentation preset.
classNameOptionalstring | undefinedAdditional root classes.

Events and callbacks3

BackupHistory events and callbacks
NameTypeDescription
onValueChangeOptional
((id: string) => void) | undefinedInspect type
Reports a selected snapshot ID.
onPreviewOptional
((id: string) => void) | undefinedInspect type
Requests a non-destructive preview of the selected snapshot.
onRestoreOptional
((id: string) => void) | undefinedInspect type
Requests a restore after confirmation.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.