Ampersand React library.
npm install @amp-labs/react   !PRs welcome
Ampersand is a declarative platform for SaaS builders who are creating product integrations.
This repository contains the Ampersand React library, a set of React components that allow your end users to install and manage Ampersand integrations.
In your repo, use npm or yarn to install the package @amp-labs/react:
``sh`
npm install @amp-labs/react
`sh`
yarn add @amp-labs/react
@amp-labs/react now ships with its own stylesheet which also allows users to override colors,
fonts, and other css variables. See Usage changes
yarn add @amp-labs/react @chakra-ui/react @emotion/react @emotion/styled framer-motion
`Usage
Please visit our documentation to learn more about how to use this library.
$3
In addition to importing components, the default stylesheet must also be imported. You may also override
--amp css variables from default styles by importing your own stylesheet.`
import { AmpersandProvider } from '@amp-labs/react';
import '@amp-labs/react/styles'; // amp-labs style sheet
import './App.css'; // optional: your own css override const options = {
project: 'PROJECT', // Your Ampersand project name or ID.
apiKey: 'API_KEY',// Your Ampersand API key.
};
function App() {
return (
// Wrap all your components inside AmpersandProvider.
// You can either do this at the App level,
// or further down in the component tree.
// You can use any of the Ampersand components here.
...
)
}
``This repository is licensed under the MIT license.
To read this license, please see LICENSE.md.
Please see CONTRIBUTING.md.