Box
stableA low-level layout primitive.
Basic usage
Box
Examples
As a layout wrapper
Use Box when you want the smallest possible styled layout primitive and full control through className.
Project status
Build checks are running for the release branch.
asChild composition
Pass asChild when Box should style another element, such as a semantic section.
Supported props
Use display, spacing shortcuts, asChild and className for system-style composition.
Grid display with padding 4
Features
- Renders a div by default.
- Supports asChild composition.
Installation
bash
pnpm dlx structyl add boxAPI Reference
Box API reference
Full props, types, defaults.