
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Install the package via NPM:
npm i realayers --s
-or-
yarn add realayers
import React, { FC } from 'react';
import { Tooltip } from 'realayers';
const MyComponent: FC = () => (
<Tooltip content="Hi there">Hover me</Tooltip>
);
import React, { FC } from 'react';
import { Popover } from 'realayers';
const MyComponent: FC = () => (
<Popover
content={
<div style={{ textAlign: 'center'}}>
<h1>WHATS UP????!</h1>
<button type="button">Click me</button>
</div>
}
>
Click me
</Popover>
);
import React, { FC } from 'react';
import { useDialog } from 'realayers';
export const Simple = () => {
const { toggleOpen, Dialog } = useDialog();
return (
<div>
<button onClick={toggleOpen}>Open</button>
<Dialog header="Whats up">
Hello
</Dialog>
</div>
);
};
import React, { FC } from 'react';
import { useDrawer } from 'realayers';
export const Simple = () => {
const { toggleOpen, Drawer } = useDrawer();
return (
<div>
<button onClick={toggleOpen}>Open</button>
<Drawer>
Hello
</Drawer>
</div>
);
};
import React, { FC } from 'react';
import { useMenu } from 'realayers';
export const Simple = () => {
const { toggleOpen, ref, Menu } = useMenu();
return (
<div>
<button ref={ref} onClick={toggleOpen}>Open</button>
<Menu>
Hello
</Menu>
</div>
);
};
import React, { FC } from 'react';
import { ContextMenu } from 'realayers';
export const Simple = () => (
<ContextMenu
content={
<div style={{ padding: 20 }}>
something cool here
</div>
}
>
<button>👋 right click me</button>
</ContextMenu>
);
import React, { FC } from 'react';
import { Notifications, useNotification } from 'realayers';
export const App = () => (
<Notifications>
<YourComponent />
</Notifications>
);
export const YourComponent = () => {
const { notify } = useNotification();
return (
<button onClick={() => notify('Something good happened!')}>
Notify
</button>
);
};
Add the following CSS variables to your application's body.
body {
--color-popover: rgb(0, 0, 0, .8);
--color-on-popover: white;
--color-tooltip: rgb(0, 0, 0, .8);
--color-on-tooltip: white;
--color-dialog: #2c2c35;
--color-on-dialog: #fff;
--color-drawer: #2c2c35;
--color-on-drawer: #fff;
--color-notification: rgb(9, 9, 10, 0.9);
--color-on-notification: #fff;
--color-notification-border: transparent;
--color-notification-error: red;
--color-notification-warning: yellow;
--color-notification-success: green;
--color-layer-transparent: rgba(5, 6, 12, 0.9);
}
If you want to run realayers locally, its super easy!
yarn installyarn startThanks to all our contributors!
FAQs
Layer Components for React - Dialogs, Drawers, Tooltips, Popovers
The npm package realayers receives a total of 6,550 weekly downloads. As such, realayers popularity was classified as popular.
We found that realayers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.