Function signature for custom card DOM renderers.
This type defines a function that takes URL metadata and rendering options, and returns an HTML string representing the link card.
The metadata extracted from the URL
Rendering and styling options for the card
An HTML string representing the rendered link card
const customRender: CardDomRender = (data, options) => { return `<div class="${options.classPrefix}"> <h3>${data.title}</h3> <p>${data.description}</p> </div>`} Copy
const customRender: CardDomRender = (data, options) => { return `<div class="${options.classPrefix}"> <h3>${data.title}</h3> <p>${data.description}</p> </div>`}
Function signature for custom card DOM renderers.
This type defines a function that takes URL metadata and rendering options, and returns an HTML string representing the link card.