Citation

An inline numbered marker for a claim. Rest on it for the source title, host and passage; click to open the page. AI.

Open playground

Median time to first refund fell from nine days to two after the policy change1, and complaints about delays halved2.

About

Citation is a React component in the AI category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { Citation } from "@ashutoshswamy/smoui" and set n, title, snippet.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { Citation } from "@ashutoshswamy/smoui";

<Citation n={1} title="Refund policy" href="https://example.com/refunds" snippet="Median fell to 2.2 days." />

Props 3

n

Marker number.

number
title / href

Source.

string
snippet

The passage the claim rests on.

string