--- title: Box description: "`Box` is the most abstract component on which all other components are built. By default, it renders a `div` element." links: - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/box - storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-box--basic --- ```tsx This is the Box ``` ## Usage ```tsx import { Box } from "@yamada-ui/react" ``` ```tsx import { Box } from "@/components/ui" ``` ```tsx import { Box } from "@workspaces/ui" ``` ```tsx ``` ### Render a different element By passing `as`, you can render it as a different element. ```tsx This is the section ``` ## Props | Prop | Default | Type | Description | | ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | | `as` | - | `As` | The HTML element to render. | | `asChild` | - | `boolean` | Merges its props onto its immediate child. | | `css` | - | `CSSObject \| CSSObject[]` | The CSS object. | | `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |