Box
Surfaces
plain
bordered
raised
inset
Padding
xs
sm
md
lg
xl
2xl
xs, sm and md follow the Card padding scale: 8, 12 and 16 px; lg, xl and 2xl are 24, 32 and 48 px. none is 0.
Radius
none
sm
md
lg
Border on any surface
raised + border
inset + border
plain + border
As another element
Release notes
This Box renders as a <section>, so it is a landmark named by its heading.
Composition
Field reportA Box holds the surface; a Stack inside arranges the content.
Nothing saved yetCode
TSX
import { Box, Stack } from '@crystalplatforms/creu';
<Box surface="inset" padding="lg" radius="lg">
<Stack direction="column" gap="sm">
<strong>Field report</strong>
<span>A Box holds the surface; a Stack inside arranges the content.</span>
</Stack>
</Box>