Skip to content
SENVENLI UI

Box

A container with token-only padding, background, radius, border and shadow.
Billing address1200 Market Street, Philadelphia, PA 19107
A padded surface
import { Box } from "@senvenli/react/layout";

Examples

With a border

A divided region; `as` gives it the right element.
Order notesLeave the parcel with the front desk.

Raised

A raised ground with its shadow, for content that floats above the page.
Invoice INV-2041Due March 31, 2026

Guidelines

When to use it

  • Giving a group of content padding or a surface without a card's semantics.

Use something else when

  • The content is one object with a title. Card

Accessibility

Built in

  • Renders a plain element; pass as for semantics.

You provide

  • The right element through as (section, nav, aside…) when it has a role.

API reference

Box

padding
Space
paddingInline
Space
paddingBlock
Space
background
Background
radius
Radius
shadow
Shadow
border
Border
as
LayoutElementDefault "div"
Also takes 375 standard DOM and ARIA attributes (id, aria-label, event handlers…).