HyperTheme Editor v0.1 release comes with a lot more developer features.
The 0.0.31 version is very minimal and provides only the components:
ThemeEditorProviderThemeEditorDrawerButtonThe new v0.1 release instead provides all the building blocks necessary to create custom theme editors for Chakra UI.
In the v0.1 version the ThemeEditorDrawerButton has been renamed to: HyperThemeEditor, it still accepts all props from Chakra UI ButtonProps.
The ThemeEditorProvider still exists and hasn't changed since the v0.0.31.
To upgrade just swap the ThemeEditorDrawerButton with the HyperThemeEditor.
- import { ThemeEditorDrawerButton } from '@hypertheme-editor/chakra-ui'+ import { HyperThemeEditor } from '@hypertheme-editor/chakra-ui'
- import { ThemeEditorDrawerButton } from '@hypertheme-editor-pro/chakra-ui'+ import { HyperThemeEditor } from '@hypertheme-editor-pro/chakra-ui'
Now you have just to use the new component.
HyperThemeEditor accepts the same props as ThemeEditorDrawerButton, so you don't have to change them.
- <ThemeEditorDrawerButton pos="fixed" bottom={4} right={2} />+ <HyperThemeEditor pos="fixed" bottom={4} right={2} />
That's all! Now that you've upgraded to v0.1, it's time to create custom editors!
Check the next page to start.
Prev
Next