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);