---
title: Box
description: "`Box`は、他のすべてのコンポーネントがその上に構築される最も抽象的なコンポーネントです。デフォルトでは、`div`要素をレンダリングします。"
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
```
## 使い方
```tsx
import { Box } from "@yamada-ui/react"
```
```tsx
import { Box } from "@/components/ui"
```
```tsx
import { Box } from "@workspaces/ui"
```
```tsx
```
### 異なる要素としてレンダリングする
`as`を渡すことで、異なる要素としてレンダリングすることができます。
```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. |