Skip to main content
Version: Next

Box

A general-purpose layout component for wrapping content with customizable styling options.

Usage

import { Box } from '@ignix-ui/registry/components/box';

<Box
width="full"
height="auto"
padding="normal"
background="white"
rounded="md"
shadow="subtle"
>
<h2>Box Component</h2>
<p>This is a general-purpose content box.</p>
</Box>

Props

PropTypeDefaultDescription
widthstring"normal"Width: "auto", "small", "normal", "large", "full", or custom
heightstring"auto"Height: "auto", "small", "normal", "large", "screen", or custom
paddingstring"normal"Padding: "none", "sm", "normal", "lg"
backgroundstring"white"Background color (from theme or custom)
roundedstring"md"Border radius: "none", "sm", "md", "lg", "full"
shadowstring"subtle"Box shadow: "none", "subtle", "medium", "strong"
classNamestringAdditional CSS classes
childrennodeContent inside the box

Use Cases

  • Cards
  • Content blocks
  • Wrappers
  • Styled containers