JSPM

@rmwc/provider

4.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8959
  • Score
    100M100P100Q186849F
  • License MIT

RMWC Provider component

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 { DocumentComponent } from '@rmwc/base/utils/document-component';
import * as docs from './docgen.json';

<DocumentComponent docs={docs} displayName="RMWCProvider" />