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 > useRendererUiTheme
useRendererUiTheme() function
React Hook for the theme of a renderer UI component
Signature:export declare function useRendererUiTheme<K extends keyof RendererUiTheme>(
key: K,
createDefaultTheme: RendererUiThemeFactory<K>
): RendererUiTheme[K]
Parameters
Parameter | Type | Description |
---|---|---|
key | K | The renderer UI component |
createDefaultTheme | RendererUiThemeFactory<K> | The factory for the default theme |
The current theme of the specified component