Components · Layout
Box
StableAdded v0.0.1
Generic container primitive with style token props.
import { Box } from '@nexub/react';Examples
Default
Nested
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| asChild | boolean | false | Merges props onto the immediate child element (Radix Slot). |
On iOS & Android
Web only
Box has no @nexub/react-native twin. On phones, follow the platform pattern instead, or compose it from the native components listed on the React Native page.