Properties of the InlineEditor React component.

interface InlineEditorProps {
    ariaLabel?: string;
    editMode: boolean;
    onValueChange: (value: string) => void;
    value: string;
    variant?: Variant;
}

Properties

ariaLabel?: string

An aria label.

editMode: boolean

Flag indicating if in edit mode or not.

onValueChange: (value: string) => void

Callback that will be called when the value has been changed.

Type declaration

    • (value: string): void
    • Parameters

      • value: string

        The new value.

      Returns void

value: string

The current value.

variant?: Variant

The variant of the text control.