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.
Example
Section titled “Example”import type { RiffleCardSlotProps } from '@rpxl/riffle/vue'
function renderCard({ card, index }: RiffleCardSlotProps<{ title: string }>) { return `${index}: ${card.title}`}Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”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.