Interface: ConditionalContentsOption
An object that describes a possible option to be displayed in the ConditionalContents component.
Properties
Property | Type | Description |
---|---|---|
contents | () => ReactNode | The contents to display if the when function returns true . |
when | (rootNode : null | EditorInFocus ) => boolean | A function that returns true if the option should be displayed for the current editor in focus. |