vitepress-linkcard
    Preparing search index...

    Type Alias CardDomRender

    CardDomRender: (data: UrlMetadata, options: CardDomRenderOptions) => string

    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.

    Type Declaration

    const customRender: CardDomRender = (data, options) => {
    return `<div class="${options.classPrefix}">
    <h3>${data.title}</h3>
    <p>${data.description}</p>
    </div>`
    }