Interface: ConditionalContentsOption

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

Properties

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