Pallas UI
DocsComponents
Core Concepts
    • Introduction
    • Getting Started
    • Theming
    • Color Tokens
    • Spacing & Sizing
    • Layout Guide
    • AspectRatio
    • Box
    • Flex
    • Grid
    • Shapes
Previews
    • Accordion
    • Alert
    • Avatar
    • Badge
    • Breadcrumb
    • Button
    • Carousel
    • Checkbox
    • Combobox
    • Command
    • Date Picker
    • Form
    • Input
    • Input OTP
    • Label
    • MenuBar
    • Modal
    • Popover
    • Progress
    • Radio Group
    • Segmented
    • Select
    • Separator
    • Sheet
    • Sidebar
    • Skeleton
    • Slider
    • Spinner
    • Steps
    • Switch
    • Tabs
    • Textarea
    • Toast
    • Tooltip
    • Typography
  1. Layout
  2. Box

Box

A fundamental layout component for creating containers with custom styles and responsive behavior.

Basic Box

Usage

import { Box } from '@styled-system/jsx'
<Box
  p={4}
  w="full"
  maxW="500px"
>
  This is a box
</Box>

Properties

Box accepts all common porperties mentioned in the layout guide.

Responsive Values

All properties support responsive values using the following format:

<Box
  w={{ base: "100%", md: "50%", lg: "33%" }}
  p={{ base: 2, md: 4, lg: 6 }}
>
  Responsive Box
</Box>

Examples

Default

Basic Box

Nested Boxes

Outer Box
Middle Box
Inner Box

Built with ❤️ by the carbonteq team. The source code is available on GitHub.

© 2025 Pallas UI. All rights reserved.