Fumadocs

类型表

一个用于文档化类型的表格

Prop

Type

Install to your codebase

Easier customisation & control.

用法

它接受一个 type 属性。

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,
    },
  }}
/>

引用

类型表

Prop

Type

对象类型

Prop

Type

How is this guide?

Last updated on