# Fumadocs UI (the default theme of Fumadocs): 型テーブル
URL: /ja/docs/ui/components/type-table
Source: https://raw.githubusercontent.com/fuma-nama/fumadocs/refs/heads/main/apps/docs/content/docs/ui/components/type-table.ja.mdx

型の情報をドキュメントに記載するためのテーブル

Install to your codebase:

```bash
npx @fumadocs/cli@latest add type-table
```

## 使い方 [#usage]

`type` プロパティを受け付けます。

```mdx
import { TypeTable } from 'fumadocs-ui/components/type-table';

<TypeTable
  type={{
    percentage: {
      description: 'The percentage of scroll position to display the roll button',
      type: 'number',
      default: 0.2,
    },
  }}
/>
```

## リファレンス [#references]

### 型テーブル [#type-table]

### TypeTableProps

| Prop   | Type                       | Description |
| ------ | -------------------------- | ----------- |
| `type` | `Record<string, TypeNode>` |             |

### オブジェクト型 [#object-type]

### ObjectTypeProps

| Prop                   | Type                           | Description                                          |
| ---------------------- | ------------------------------ | ---------------------------------------------------- |
| `description?`         | `React.ReactNode`              | Additional description of the field                  |
| `type`                 | `React.ReactNode`              | type signature (short)                               |
| `typeDescription?`     | `React.ReactNode`              | type signature (full)                                |
| `typeDescriptionLink?` | `string \| undefined`          | Optional `href` for the type                         |
| `default?`             | `React.ReactNode`              |                                                      |
| `required?`            | `boolean \| undefined`         |                                                      |
| `deprecated?`          | `boolean \| undefined`         |                                                      |
| `parameters?`          | `ParameterNode[] \| undefined` | a list of parameters info if the type is a function. |
| `returns?`             | `React.ReactNode`              |                                                      |