Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@amp-labs/react
Advanced tools
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.
Requires
In your repo, use npm
or yarn
to install the package @amp-labs/react
:
npm install @amp-labs/react
yarn add @amp-labs/react
@amp-labs/react 2.0+ no longer requires chakra as a dependency. Chakra dependencies (@chakra-ui/react @emotion/react @emotion/styled framer-motion) are no longer required.
@amp-labs/react now ships with its own stylesheet which also allows users to override colors, fonts, and other css variables. See Usage changes
If you are using yarn, you'll have to also install the peer dependencies.
yarn add @amp-labs/react @chakra-ui/react @emotion/react @emotion/styled framer-motion
Please visit our documentation to learn more about how to use this library.
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.
<AmpersandProvider options={options}>
// You can use any of the Ampersand components here.
...
</AmpersandProvider>
)
}
This repository is licensed under the MIT license.
To read this license, please see LICENSE.md.
Please see CONTRIBUTING.md.
FAQs
Ampersand React library.
The npm package @amp-labs/react receives a total of 1,046 weekly downloads. As such, @amp-labs/react popularity was classified as popular.
We found that @amp-labs/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.