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

4

Version

4.1.2

License

Apache-2.0

Unpacked Size

34.6 kB

Total Files

15

Last publish

Collaborators

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