Rebar UI

1.0

synthetic

Props Table

A component's props as a table: name, type, required, default.

ProjectCard propsThree props, one required

ProjectCard props

PropTypeRequiredDefault
projectProjectYes—
compactbooleanNofalse
onOpen(id: string) => voidNo—

In context

Reference pageA short intro, then the table

ProjectCard

Shows a project's name, owner, status and due date.

Props

PropTypeRequiredDefault
projectProjectYes—
compactbooleanNofalse
onOpen(id: string) => voidNo—

Shape

{ type: "props-table", heading?: string, rows: PropRow[] }
// PropRow = { name: string, type: string, required: boolean, defaultValue: string | null, description: string | null }