TypeTable

TypeTable renders a compact four-column table : Prop, Type, Default, Description : with a Required chip on rows that need it. It's the primitive every "Props" or "API" section on this site is built with.

Basic use

Required rows

Set Required="true" on a TypeRow to add the "Required" chip next to the prop name.

Not-just-for-props

The columns are labeled Prop / Type / Default / Description but nothing forces "type" to be a C# type. Use it wherever a four-column labelled-list would help : CLI commands, package families, framework primitives.

Empty state

If you render a TypeTable with no rows, it emits a single "No props documented." row rather than an empty grid : keeps the layout stable.

How it works

TypeRow doesn't render its own markup : it registers itself with the parent TypeTable via a cascading parameter in OnInitialized. The parent collects the row info and renders the table body. Consequence: rows must be direct children of TypeTable : wrapping them in a <div> breaks the cascading resolution.

Props

TypeTable

Prop Type Default Description
No props documented.

TypeRow

Prop Type Default Description
Default string? Third column : default value or fallback. Em-dash when empty.
Description string? Fourth column : free-text description.
Required bool false When true, appends a `Required` chip to the Name cell.

See also