Skip to content

Source link

Links an answer to its source.

source-link-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Source list

Set index to the citation number in the answer.

source-link-list-demo.tsx

API reference

vip/ui adds or changes the props below. For all other props, see React Aria Link (opens in a new tab).

href: stringRequired
The URL of the source.
label: stringRequired
The title of the page.
source: stringRequired
The name of the site or document.
index: number
The citation number. Shows before the label.
description: string
Text below the source.