
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.
@bento/internal-props
Advanced tools
The @bento/internal-props package provides internal utilities and components used across the Bento project to bypass restrictions, filtering of props, or triggering of data-override props within the Bento ecosystem. This package is strictly for internal use by @bento-based components or those who use Bento to create design system components.
⚠️ Warning: This package is not intended for public consumption and is subject to change without notice. It should only be used by internal Bento components or design system implementations.
To install the package, use your preferred package manager:
npm install @bento/internal-props
The package exports two main functions:
Extracts internal properties from a set of properties by removing the specified prefix.
import { useInternalProps } from '@bento/internal-props';
const [props, internal] = useInternalProps({
'$$bento-internal-1-foo': 'bar',
'$$bento-internal-1-baz': 'qux',
regular: 'prop'
});
console.log(props); // { regular: 'prop' }
console.log(internal); // { foo: 'bar', baz: 'qux' }
The function accepts two arguments:
props: The properties to extract fromprefix: (Optional) The prefix to remove from the properties. Defaults to $$bento-internal-{major}-Converts a set of properties to internal properties by prefixing them with the specified namespace.
import { toInternalProps } from '@bento/internal-props';
const internal = toInternalProps({
foo: 'bar',
baz: 'qux'
});
console.log(internal); // { '$$bento-internal-1-foo': 'bar', '$$bento-internal-1-baz': 'qux' }
The function accepts two arguments:
props: The properties to convertprefix: (Optional) The prefix to use for the internal properties. Defaults to $$bento-internal-{major}-<Source language='tsx' code={ SourceDemo } />
FAQs
Internal utilities for managing prefixed component properties
We found that @bento/internal-props 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.