0.0.5 • Published 8 years ago
react-motif v0.0.5
react-motif 0.0.6
React provider for themeable components
yarn add react-motifnpm install react-motif
Methods
motifProvider(motif)
Creates the motif context on an Component.
Parameters
| Name | Type | Description | |
|---|---|---|---|
| motif | Object | The context that should be exported. |
Returns
functionReturns the wrapper function that applies the context.
withMotif(Component)
Extracts the motif context on an Component.
Parameters
| Name | Type | Description | |
|---|---|---|---|
| Component | Object | The component that will use the context. |
Returns
ObjectReturns Component with access to the context.