Primitive

Box

View that takes spacing, colour, radius and elevation tokens as props.

Box as rendered in the Native-UI Storybook

What it does

  • Padding and margin props
  • Theme colour background
  • Radius and 6 elevation levels

Import

import { Box } from '@polprog/native-ui';

The same module is available as a direct import:

import { Box } from '@polprog/native-ui/primitives/Box';

Open in Storybook View source

Related components

← All components

Expo React Native 0.84+ iOS Android TypeScript Accessible