Package Exports
- @rmwc/provider
- @rmwc/provider/README.md
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rmwc/provider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
RMWC Provider
This is an optional component that provides global configuration for RMWC.
- Module @rmwc/provider
You can wrap your top level App component with RMWC provider to set global configuration options. Just pass the options in as props.
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import App from './App'; // your main app component
import { RMWCProvider } from '@rmwc/provider';
// This example disables the button ripple effect by default
ReactDOM.render(
<RMWCProvider buttonDefaultRipple={false}>
<App />
</RMWCProvider>,
document.getElementById('root'),
);
import { Docs } from '@rmwc/base/utils/document-component';
import * as docs from './docgen.json';
<Docs src={docs} components={['RMWCProvider']} />