The API reference is a Work in Progress and will be continuously improved and extended. We'd love to hear your feedback in our documentation repository.

Home > @edtr-io/ui > useEditorUiTheme

useEditorUiTheme() function

React Hook for the theme of an editor UI component

Signature:
export declare function useEditorUiTheme<K extends keyof EditorUiTheme>(
  key: K,
  createDefaultTheme: EditorUiThemeFactory<K>
): EditorUiTheme[K]

Parameters

ParameterTypeDescription
keyKThe editor UI component
createDefaultThemeEditorUiThemeFactory<K>The factory for the default theme
Returns:

EditorUiTheme[K]

The current theme of the specified component