Skip to content
nexubDesign System
v2.4.0

Components · Layout

Box

StableSince v0.0.1

Generic container primitive with style token props.

import { Box } from '@nexub/react';

Examples

Default

Nested

Props

Props
PropTypeDefaultDescription
padding'xs' | 'sm' | 'md' | 'lg' | 'xl'—Padding applied to all sides using design tokens.
backgroundstring—Background color CSS value or token.
radiusstring—Border radius CSS value or token.
asChildboolean—Merges props onto the immediate child element (Radix Slot).

On iOS & Android