Sources is installed into your project as a file you own. It takes the same props as Ant Design X's Sources, plus a ref, marked antuikit in the API table. Its folding arrow and the inline card's page arrows come from your icon pack.
Install
npx antuikit@latest init
npx antuikit@latest add sources
The first command installs AntuikitProvider and the theme tokens, the second adds this component.
Import
From @/components/ui/sources, never from @ant-design/x. The file lives in your project, so the import is a path, not a package. SourcesItem, the type of one source, comes from the same file.
import { Sources, type SourcesItem } from "@/components/ui/sources"
Two forms
By default, Sources is a list of links under a title that folds and unfolds it. Put it above or below an answer.
inline turns it into a small marker that sits in the text, with title as its label, usually a footnote number. Hovering it opens a card that pages through the sources.