
The ThemeEditorDrawerHeader component is the default header component rendered inside the ThemeEditorDrawer.
It provides undo/redo functionalities, the ColorModeToggle, a Reset Theme Button and the Close Drawer Button.
View source
@hypertheme-editor/chakra-ui-core leads to a known issue with recoil.@hypertheme-editor/chakra-ui or @hypertheme-editor-pro/chakra-ui.import { ThemeEditorDrawerHeader } from '@hypertheme-editor/chakra-ui'
import { ThemeEditorDrawerHeader } from '@hypertheme-editor-pro/chakra-ui'
ThemeEditorDrawerHeader works with the headerComponent prop provided by the ThemeEditorDrawer component.
This is a minimal example explaining how to use the component:
| Name | Type | Default | Short Description |
|---|---|---|---|
onClose | () => void | undefined | Callback that closes the ThemeEditorDrawer |
The onClose prop is called when clicking on the "close drawer" button.
This prop is overrided by the ThemeEditorDrawer component, so you don't have to mind it.
Prev
Next