
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
The @bento/box package provides the shared React context that is used throughout
the Bento component ecosystem.
To install the package, use the following command:
npm install --save @bento/box
import { Box } from '@bento/box';
The Box context is a React context that provides Bento-specific configuration
to child components. It is typically used internally and does not require direct
interaction in most cases.
@bento/slots and @bento/use-props packages.@bento/environment component.The Box context is used to pass down the Bento specific configuration down to
the child components. This is done automatically for you, for the majority of
the cases you don't need to interact or use this context directly in your
application.
<Source language='tsx' code={ SourceNamespace } />
The above example would output the following:
The package exposes a defaults function that will return the default assigned
values for the Box context. You can use this if you need to provide your
components with a custom Box.Provider
import { Box, defaults } from '@bento/box';
import { useContext } from 'react';
function MyComponent() {
return (
<Box.Provider value={defaults()}>
<MyChildComponent />
</Box.Provider>
);
};
The Box context contains a slots object which is consumed by the
@bento/slots and @bento/use-props packages. This object
contains the following properties:
The env object contains @bento/environment specific configuration. The
object contains the following properties:
FAQs
Shared context for Bento components
We found that @bento/box demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.