Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@twilio-paste/customization

pastebot70.7kMIT9.0.1TypeScript support: included

The Customization Provider provides functionality to change token values and the style of Paste components.

readme

Customization

The Paste CustomizationProvider leverages React's Context to provide the theme object to any descendant components in the tree. For that reason, we recommend wrapping your application at the root level with the Paste CustomizationProvider. This allows all sub-components to retrieve the correct token value for the supplied theme.

import {CustomizationProvider} from '@twilio-paste/customization';

<CustomizationProvider theme={{}}>
  <App />
</CustomizationProvider>