synthetic
Props Table
A component's props as a table: name, type, required, default.
ProjectCard propsThree props, one required
ProjectCard props
| Prop | Type | Required | Default |
|---|---|---|---|
project | Project | Yes | — |
compact | boolean | No | false |
onOpen | (id: string) => void | No | — |
In context
Reference pageA short intro, then the table
ProjectCard
Shows a project's name, owner, status and due date.
Props
| Prop | Type | Required | Default |
|---|---|---|---|
project | Project | Yes | — |
compact | boolean | No | false |
onOpen | (id: string) => void | No | — |
Shape
{ type: "props-table", heading?: string, rows: PropRow[] }
// PropRow = { name: string, type: string, required: boolean, defaultValue: string | null, description: string | null }