bpk-component-theme-toggle-css
v3.1.8
Published
Backpack theme toggle component.
Downloads
23
Keywords
Readme
bpk-component-theme-toggle
Backpack Theme Switcher component.
Installation
npm install bpk-component-theme-toggle --save-dev
Usage
import React from 'react';
import BpkThemeToggle from 'bpk-component-theme-toggle';
export default () => (
<BpkThemeToggle />
);
HOC usage
import React from 'react';
import { updateOnThemeChange } from 'bpk-component-theme-toggle';
import BpkThemeProvider from 'bpk-theming';
const EnhancedThemeProvider = updateOnThemeChange(BpkThemeProvider);