Soundstripe Design System

Box

The Box component is a low-level primitive used for layout purposes. It can be used to create grid layouts, apply padding or margin, and more.

Style Props

The Box component utilizes styled-system style props, which makes connecting to our theme tokens quick and easy. See the reference table for a full list of available props.

Usage

Here's an example of putting text into a padded, bordered container.

Boxes can be nested and styled to create just about any layout.

Using the as prop will render the Box component as any HTML element, which is helpful for maintaining semantic, accessible markup.