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
| Name | Type | Description |
|---|---|---|
labelRequired | string | Accessible title for the history region. |
snapshotsRequired |
| Snapshots ordered from oldest to newest. |
valueOptional | string | undefined | Controlled snapshot ID. Initially selects the newest snapshot when omitted. |
labelsRequired |
| Localized navigation, preview and restore strings. |
presetOptional |
| Optional presentation preset. |
classNameOptional | string | undefined | Additional root classes. |
Events and callbacks3
| Name | Type | Description |
|---|---|---|
onValueChangeOptional |
| Reports a selected snapshot ID. |
onPreviewOptional |
| Requests a non-destructive preview of the selected snapshot. |
onRestoreOptional |
| Requests a restore after confirmation. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.