Skip to content
AI Elements

Inline Citation

Inline source badge with a hover card of citations.

Import

tsx
import { InlineCitation } from "@cronus-ui/ui";
bash
npx cronus-ui add inline-citation

Examples

API Reference

Generated from the component's exported types.

InlineCitationLabels

Skip InlineCitationLabels props table
PropTypeDefaultDescription
previous
string
next
string
unknown
string

InlineCitationProps

Extends HTMLAttributes<HTMLSpanElement>

No own props — see the extended type above for available props.

InlineCitationTextProps

Extends HTMLAttributes<HTMLSpanElement>

No own props — see the extended type above for available props.

InlineCitationCardProps

Extends ComponentProps<typeof HoverCard>

No own props — see the extended type above for available props.

InlineCitationCardTriggerProps

Extends ComponentProps<typeof Badge>

Skip InlineCitationCardTriggerProps props table
PropTypeDefaultDescription
sources*
string[]
labels
Pick<InlineCitationLabels, "unknown">Override default English strings.

InlineCitationCardBodyProps

Extends ComponentProps<typeof HoverCardContent>

No own props — see the extended type above for available props.

InlineCitationCarouselProps

Extends HTMLAttributes<HTMLDivElement>

Skip InlineCitationCarouselProps props table
PropTypeDefaultDescription
labels
InlineCitationLabelsOverride default English strings.

InlineCitationCarouselContentProps

Extends HTMLAttributes<HTMLDivElement>

No own props — see the extended type above for available props.

InlineCitationCarouselItemProps

Extends HTMLAttributes<HTMLDivElement>

No own props — see the extended type above for available props.

InlineCitationCarouselHeaderProps

Extends HTMLAttributes<HTMLDivElement>

No own props — see the extended type above for available props.

InlineCitationCarouselIndexProps

Extends HTMLAttributes<HTMLDivElement>

No own props — see the extended type above for available props.

InlineCitationCarouselPrevProps

Extends HTMLAttributes<HTMLButtonElement>

No own props — see the extended type above for available props.

InlineCitationCarouselNextProps

Extends HTMLAttributes<HTMLButtonElement>

No own props — see the extended type above for available props.

InlineCitationSourceProps

Extends HTMLAttributes<HTMLDivElement>

Skip InlineCitationSourceProps props table
PropTypeDefaultDescription
title
string
url
string
description
string

InlineCitationQuoteProps

Extends HTMLAttributes<HTMLQuoteElement>

No own props — see the extended type above for available props.