Skip to main content
  1. Docs
  2. Components
  3. Layout

Box

A token-only surface: padding, a background, a border and corners. No margin: space between siblings is the parent's gap.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<div>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Behaviour

Semantics
A <div>: none of its own. render gives it an element's.
Right to left
paddingInline is logical: start and end swap.

02

Tested

On every change, before it ships.

  • axe, WCAG 2.2 A and AA, in Chromium on every pull request
  • Firefox and WebKit every night
  • Right to left: logical properties, start and end
  • Every window size class: 600, 840, 1200 and 1600px
Next — BoxChangelog