Mixins / foldkit-mixins-ui

CardGroupView

interface · packages/mixins-ui/src/card.ts:229

interface CardGroupView<Message> {
  readonly cards: ReadonlyArray<CardOfGroup<Message>>
  readonly columns?: number | undefined
  readonly fluid?: CardGroupFluid | undefined
  readonly label?: string | undefined
  readonly wrap?:
    ((card: Html, source: CardOfGroup<Message>) => Html) | undefined
  readonly style?: NamedStyle<typeof CardGroupSlots> | undefined
  readonly cardStyle?: NamedStyle<typeof CardSlots> | undefined
  readonly mixins?: MixinList<Message> | undefined
}

Cards as one list: in one column or a grid, divided or apart, and, given fluid, with one highlight that follows the pointer to the nearest card in place of a hover on each.

Members

CardGroupView.cards

property · packages/mixins-ui/src/card.ts:231

readonly cards: ReadonlyArray<CardOfGroup<Message>>

Each card, keyed so a card removed or moved keeps its neighbours' DOM.

CardGroupView.columns

property · packages/mixins-ui/src/card.ts:236

readonly columns?: number | undefined

The most columns; the recipe lays fewer where a column would be narrower than its minColumn. More than one reads nearness in both directions. Default 1.

CardGroupView.fluid

property · packages/mixins-ui/src/card.ts:238

readonly fluid?: CardGroupFluid | undefined

The highlight: Card.fluid. Without one the group draws none, and cards hover on their own.

CardGroupView.label

property · packages/mixins-ui/src/card.ts:240

readonly label?: string | undefined

The list's accessible name.

CardGroupView.wrap

property · packages/mixins-ui/src/card.ts:242

readonly wrap?:
  ((card: Html, source: CardOfGroup<Message>) => Html) | undefined

Draws around each card, such as a link or a Tooltip's trigger.

CardGroupView.style

property · packages/mixins-ui/src/card.ts:244

readonly style?: NamedStyle<typeof CardGroupSlots> | undefined

A style of CardGroupSlots, for the group's frame and highlight.

CardGroupView.cardStyle

property · packages/mixins-ui/src/card.ts:246

readonly cardStyle?: NamedStyle<typeof CardSlots> | undefined

A style of CardSlots for every card that names none of its own.

CardGroupView.mixins

property · packages/mixins-ui/src/card.ts:248

readonly mixins?: MixinList<Message> | undefined

Mixins beside the style.