Type Table

A table for documenting types

it is an optional component which won't be loaded by default.

Usage

It accepts a type property.

import { TypeTable } from 'next-docs-ui/components/type-table'
 
<TypeTable
  type={{
    percentage: {
      description:
        'The percentage of scroll position to display the roll button',
      type: 'number',
      default: 0.2
    }
  }}
/>
PropTypeDefault
percentage
number
0.2

Type Table

PropTypeDefault
type
Record<string, ObjectType>
-

Object Type

PropTypeDefault
description
string
"-"
type
string
-
typeDescription
string
-
typeDescriptionLink
string
-

Last updated on