Box
The Box component is a simple container with a white background, some padding, and a box shadow.
How it works #
The Box component provides a simple, clean container with a white background, padding, and a subtle box shadow. It is ideal for grouping content, forms, or media in a visually distinct section.
How to use:
The following demo shows a basic usage of the
How to use:
- Wrap your content inside the
<Box>component to give it a styled container. - You can place any valid markup inside
<Box>, such as text, forms, or custom layouts. - Use multiple
<Box>components on a page to organize different sections or highlight important information.
Box component with simple text content.
I'm in a box.
<Box>
I'm in a box.
</Box>
The Box component can be used to neatly group interactive elements, such as forms, making them stand out from the rest of the page.
How to use:
The demo below illustrates how to use the
How to use:
- Place your form or input fields inside the
<Box>component. - This approach helps visually separate forms from other content, improving clarity and user experience.
Box component to contain a sign-in form.
<Box>
<form>
<div class="field">
<label class="label">Email</label>
<div class="control">
<input class="input" type="email" placeholder="e.g. alex@example.com" />
</div>
</div>
<div class="field">
<label class="label">Password</label>
<div class="control">
<input class="input" type="password" placeholder="********" />
</div>
</div>
<button class="button is-primary">Sign in</button>
</form>
</Box>
The Box component is also suitable for wrapping more complex layouts, such as media objects or card-like content, providing a consistent and attractive appearance.
How to use:
The following demo demonstrates the
How to use:
- Embed any layout, such as media, images, or interactive elements, inside the
<Box>component. - This ensures your content is visually grouped and stands out from the background.
Box component containing a media object with an image and actions.

John Smith @johnsmith
31m
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
efficitur sit amet massa fringilla egestas. Nullam condimentum luctus
turpis.
<Box>
<article class="media">
<div class="media-left">
<figure class="image is-64x64">
<img src="https://bulma.io/assets/images/placeholders/128x128.png" alt="Image" />
</figure>
</div>
<div class="media-content">
<div class="content">
<p>
<strong>John Smith</strong> <small>@@johnsmith</small>
<small>31m</small>
<br />
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean
efficitur sit amet massa fringilla egestas. Nullam condimentum luctus
turpis.
</p>
</div>
<nav class="level is-mobile">
<div class="level-left">
<a class="level-item" aria-label="reply">
<span class="icon is-small">
<i class="bi bi-reply-fill" aria-hidden="true"></i>
</span>
</a>
<a class="level-item" aria-label="retweet">
<span class="icon is-small">
<i class="bi bi-repeat" aria-hidden="true"></i>
</span>
</a>
<a class="level-item" aria-label="like">
<span class="icon is-small">
<i class="bi bi-heart-fill" aria-hidden="true"></i>
</span>
</a>
</div>
</nav>
</div>
</article>
</Box>