bpk-component-theme-toggle

4.1.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i bpk-component-theme-toggle

Weekly Downloads

54

Version

4.1.2

License

Apache-2.0

Unpacked Size

34.6 kB

Total Files

15

Last publish

Collaborators

  • ojcurt
  • frugoman
  • gert-jan.vercauteren
  • mungodewar
  • skyscanner-koalasquad
  • anambl