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
Parameter | Type | Description |
---|---|---|
key | K | The editor UI component |
createDefaultTheme | EditorUiThemeFactory<K> | The factory for the default theme |
The current theme of the specified component