Skip to components
DEVELOPER REFERENCE · v4.0.0

ComparisonPreview API

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

ComparisonPreview6 props0 callbacks0 methods

Props6

ComparisonPreview props
NameTypeDescription
originalValueRequiredstringUnformatted source value displayed in the comparison preview.
formattedRequired
ComponentChildrenInspect type
Rendered formatted value shown in the comparison preview.
formattedStyleOptional
h.JSX.CSSProperties | undefinedInspect type
Inline styles applied to the formatted preview.
visualOptionalboolean | undefinedEnables the visual preview presentation.
formattedClassNameOptionalstring | undefinedAdditional CSS classes for the formatted part of the component.
labelsRequired
{ readonly title: string; readonly original: string; readonly formatted: string; readonly hint: string; }Inspect type
Localized text labels for the controls in this composition.

Events and callbacks0

No component-specific events or callbacks.

Methods0

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