Type alias: ConditionalContentsOption

Ƭ ConditionalContentsOption: Object

An object that describes a possible option to be displayed in the ConditionalContents component.

Type declaration

NameTypeDescription
contents() => React.ReactNodeThe contents to display if the when function returns true.
when(rootNode: EditorInFocus | null) => booleanA function that returns true if the option should be displayed for the current editor in focus.