Skip to content

RiffleCardSlotProps<T>

Defined in: vue/Riffle.ts:100

Card slot props, typed by whatever array you pass to cards: card is that array’s element type, not unknown.

import type { RiffleCardSlotProps } from '@rpxl/riffle/vue'
function renderCard({ card, index }: RiffleCardSlotProps<{ title: string }>) {
return `${index}: ${card.title}`
}

T

card: T

Defined in: vue/Riffle.ts:102

The card at index.


index: number

Defined in: vue/Riffle.ts:104

The card’s position in the cards array you passed.