Component docs
Loading
import { Box } from "@pixxl-tools/components";
// In Server Components:
import { Box } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
padding | ComponentPadding | — | Inner spacing. |
as | ElementName | — | Element to render. |
tone | ComponentTone | — | Colour role (neutral, primary, danger, success, warning, info). |
variant | ComponentVariant | — | Emphasis (solid, secondary, soft, outline, ghost). |
paddingComponentPadding
Inner spacing.
asElementName
Element to render.
toneComponentTone
Colour role (neutral, primary, danger, success, warning, info).
variantComponentVariant
Emphasis (solid, secondary, soft, outline, ghost).
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
<Box padding="md">Box</Box>