Mixins / foldkit-mixins-ui

RowContent

interface · packages/mixins-ui/src/rowContent.ts:9

interface RowContent {
  readonly label: string
  readonly description?: string | Html | undefined
  readonly icon?: Html | undefined
  readonly trailing?: Html | undefined
  readonly content?: Html | undefined
  readonly disabled?: boolean | undefined
}

In the guides

Members

RowContent.label

property · packages/mixins-ui/src/rowContent.ts:11

readonly label: string

The row's accessible name and what typing matches; always text.

RowContent.description

property · packages/mixins-ui/src/rowContent.ts:13

readonly description?: string | Html | undefined

A line under the label.

RowContent.icon

property · packages/mixins-ui/src/rowContent.ts:15

readonly icon?: Html | undefined

Drawn before the label: a glyph, an avatar, a dot.

RowContent.trailing

property · packages/mixins-ui/src/rowContent.ts:17

readonly trailing?: Html | undefined

Drawn after the label: a badge, a count, a time, a shortcut.

RowContent.content

property · packages/mixins-ui/src/rowContent.ts:19

readonly content?: Html | undefined

Drawn in place of the label's text; label still names the row.

RowContent.disabled

property · packages/mixins-ui/src/rowContent.ts:21

readonly disabled?: boolean | undefined

The row is shown and cannot be chosen.