Skip to content

Box

stable

Generic box container with padding and border props

import { Box } from "@nodus/design-system"
Loading demo…

Props

as
Type ElementTypeDefault "div"

Rendered HTML element

p
Type SpaceToken | stringDefault

Padding (all sides)

px
Type SpaceToken | stringDefault

Horizontal padding

py
Type SpaceToken | stringDefault

Vertical padding

m
Type SpaceToken | stringDefault

Margin (all sides)

display
Type CSSProperties['display']Default

CSS display value

Metadatasemanticsurfacespace
MobileWorks As-Is

Primitive container — mobile behavior depends entirely on applied classes.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?