Type Table
TypeTable documents the shape of an object, component props, config options,
API parameters, from a single object. The Default column hides itself when
no property defines one.
Example
Prop Type
The heading shown at the top.
A Lucide icon name shown beside the title.
Whether the panel starts expanded.
No longer used.
Usage
<script> import { TypeTable } from '$lib';</script><TypeTable type={{ title: { type: 'string', description: 'The heading.', required: true }, open: { type: 'boolean', default: 'false' } }}/>Per-property fields
Prop Type
Shown as a code chip.
Short prose under the name.
Longer note shown muted under the type.
Shown as a code chip in the Default column.
Adds a "required" badge.
Strikes the name and adds a badge.