0.0.5 • Published 6 years ago

react-motif v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

react-motif 0.0.6

React provider for themeable components

  yarn add react-motif
  npm install react-motif

Methods

motifProvider withMotif

motifProvider(motif)

Creates the motif context on an Component.

Parameters
NameTypeDescription
motifObjectThe context that should be exported. 
Returns
  • function Returns the wrapper function that applies the context.

withMotif(Component)

Extracts the motif context on an Component.

Parameters
NameTypeDescription
ComponentObjectThe component that will use the context. 
Returns
  • Object Returns Component with access to the context.
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago