---
title: List
description: "`List` is a component for displaying lists. By default, it renders a `ul` element."
links:
- style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/list/list.style.ts
- source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/list
- storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-list--basic
---
```tsx
【一つ】この世界におけるあらゆる殺傷、戦争、略奪を禁ずる
【二つ】争いは全てゲームにおける勝敗で解決するものとする
【三つ】ゲームには、相互が対等と判断したものを賭けて行われる
【四つ】 "三"に反しない限り、ゲーム内容、賭けるものは一切を問わない
【五つ】ゲーム内容は、挑まれた方が決定権を有する
【六つ】"盟約に誓って"行われた賭けは、絶対遵守される
【七つ】集団における争いは、全権代理者をたてるものとする
【八つ】ゲーム中の不正発覚は、敗北と見なす
【九つ】以上をもって神の名のもと絶対不変のルールとする
【十】みんななかよくプレイしましょう
```
## Usage
```tsx
import { List } from "@yamada-ui/react"
```
```tsx
import { List } from "@/components/ui"
```
```tsx
import { List } from "@workspaces/ui"
```
```tsx
```
### Use items
```tsx
const items = useMemo(
() => [
{ children: "【一つ】この世界におけるあらゆる殺傷、戦争、略奪を禁ずる" },
{ children: "【二つ】争いは全てゲームにおける勝敗で解決するものとする" },
{
children: "【三つ】ゲームには、相互が対等と判断したものを賭けて行われる",
},
{
children:
'【四つ】 "三"に反しない限り、ゲーム内容、賭けるものは一切を問わない',
},
{ children: "【五つ】ゲーム内容は、挑まれた方が決定権を有する" },
{ children: '【六つ】"盟約に誓って"行われた賭けは、絶対遵守される' },
{ children: "【七つ】集団における争いは、全権代理者をたてるものとする" },
{ children: "【八つ】ゲーム中の不正発覚は、敗北と見なす" },
{ children: "【九つ】以上をもって神の名のもと絶対不変のルールとする" },
{ children: "【十】みんななかよくプレイしましょう" },
],
[],
)
return
```
### Use Marker
```tsx
{(styleType, index) => (
【一つ】この世界におけるあらゆる殺傷、戦争、略奪を禁ずる
【二つ】争いは全てゲームにおける勝敗で解決するものとする
【三つ】ゲームには、相互が対等と判断したものを賭けて行われる
【四つ】 "三"に反しない限り、ゲーム内容、賭けるものは一切を問わない
)}
```
### Using Custom Icons
To use custom icons for items, set a `ReactNode` to the `icon` property or use `List.Icon`.
```tsx
const items = useMemo(
() => [
{
icon: ,
children: "【一つ】この世界におけるあらゆる殺傷、戦争、略奪を禁ずる",
},
{
icon: ,
children: "【二つ】争いは全てゲームにおける勝敗で解決するものとする",
},
{
icon: ,
children: "【三つ】ゲームには、相互が対等と判断したものを賭けて行われる",
},
],
[],
)
return (
}>
【四つ】 "三"に反しない限り、ゲーム内容、賭けるものは一切を問わない
}>
【五つ】ゲーム内容は、挑まれた方が決定権を有する
}>
【六つ】"盟約に誓って"行われた賭けは、絶対遵守される
【七つ】集団における争いは、全権代理者をたてるものとする
【八つ】ゲーム中の不正発覚は、敗北と見なす
【九つ】以上をもって神の名のもと絶対不変のルールとする
【十】みんななかよくプレイしましょう
)
```
## Props
### List.Root
| 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. |
| `items` | - | `ListItemProps[]` | If provided, generate elements based on items. |
| `stylePosition` | - | `"-moz-initial" \| "inherit" \| "initial" \| "inside" \| "outside" \| "revert-layer" \| "revert" \| "unset" ...` | The CSS `list-style-position` property. |
| `styleType` | - | `"-moz-initial" \| "inherit" \| "initial" \| "none" \| "revert-layer" \| "revert" \| "unset" ...` | The CSS `list-style-position` property. |
### List.Icon
| 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. |
### List.Item
| 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. |
| `icon` | - | `ReactElement` | The icon to use. |