Bento is an easy to use component library that helps you achieve a great page experience.

Supported frameworks

Bento works great with frameworks and CMS

Bento components are packaged as React or Preact components for seamless integration with those frameworks, but they're also provided as Web Components, so that they can be used anywhere else.

Framework guides
Bento features

Great page experience with Bento

Offering users a great experience is important and Bento components are designed from the ground up with page experience in mind. For example, all Bento components avoid user frustration by minimizing content shifts by design.

Start learning

Bento in action

Bento components are highly customizable and enable custom interactivity via their APIs.

➞ All components
<bento-base-carousel id="my-carousel">
<img src="/assets/img/group-1.webp" />
<img src="/assets/img/group-2.webp" />
<img src="/assets/img/group-3.webp" />

(async () => {
const carousel = document.querySelector('#my-carousel');
await customElements.whenDefined('bento-base-carousel');
const api = await carousel.getApi();

// programatically advance to next slide;
<bento-accordion id="my-accordion">
<h2>Section 1</h2>
<p>Content in section 1.</p>
<h2>Section 2</h2>
<p>Content in section 2.</p>
<h2>Section 3</h2>
<p>Content in section 3.</p>
(async () => {
await customElements.whenDefined('bento-accordion');
const api = await accordion.getApi();
const accordion = document.querySelector('#my-accordion');
<bento-sidebar id="sidebar1" side="right" hidden>
<h2>Navigation Sidebar</h2>
<li>Nav item A</li>
<li>Nav item B</li>
<li>Nav item C</li>
<li>Nav item D</li>

<div class="buttons">
<button id="open-sidebar">Open sidebar</button>

(async () => {
await customElements.whenDefined('bento-sidebar');
const api = await sidebar.getApi();
const sidebar = document.querySelector('#sidebar1');
document.querySelector('#open-sidebar').onclick = () =>;
aria-label="Share on Twitter"

<button id="change-share">Change share button</button>

(async () => {
const socialShare = document.querySelector('#my-share');
const changeShareButton = document.querySelector('#change-share');
changeShareButton.onclick = () => {
socialShare.setAttribute('type', 'linkedin');
socialShare.setAttribute('aria-label', 'Share on LinkedIn');

Latest news

Check out the latest news about Bento.

➞ All news
More details