
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@builder.io/widgets
Advanced tools
Adds widgets for Builder.io editing, such as carousels, tabs, accordions, etc.
Adds widgets for Builder.io editing, such as carousels, tabs, accordions, etc.
First, install the package:
npm install @builder.io/widgets
When using the React SDK, import:
import '@builder.io/widgets';
When you import widgets wherever you render a <BuilderComponent ... />
, the widgets register and are available in the Visual Editor and when rendering (including server-side).
For a working example, check out Builder's Next.js example.
Instead of importing the root @builder.io/widgets
, which synchronously registers all components, you can asynchronously import only the widgets used in your Builder content.
To dynamically import widgets in Next.js, use the following import statement:
import '@builder.io/widgets/dist/lib/builder-widgets-async'
Lazy load the widget components explicitly by registering them with your lazy loading library of choice; for example, Loadable, and only the specified components will load when used in content, as needed.
import { Builder } from '@builder.io/react';
import { accordionConfig } from '@builder.io/widgets/dist/lib/components/Accordion.config';
import loadable from '@loadable/component';
Builder.registerComponent(
loadable(() =>
import('@builder.io/widgets/dist/lib/components/Accordion').then(mod => mod.AccordionComponent)
),
accordionConfig
);
You can also use this same methodology with Suspense as well.
For more detail, read the official Builder widgets documentation, Using Widgets.
If you have questions or feedback, contact us at support@builder.io. We are happy to help!
FAQs
Adds widgets for Builder.io editing, such as carousels, tabs, accordions, etc.
The npm package @builder.io/widgets receives a total of 11,527 weekly downloads. As such, @builder.io/widgets popularity was classified as popular.
We found that @builder.io/widgets 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.