Inline Citation
Inline source badge with a hover card of citations.
Import
import { InlineCitation } from "@cronus-ui/ui";
npx cronus-ui add inline-citation
Examples
API Reference
Generated from the component's exported types.
InlineCitationLabels
| Prop | Type | Default | Description |
|---|---|---|---|
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>
| Prop | Type | Default | Description |
|---|---|---|---|
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>
| Prop | Type | Default | Description |
|---|---|---|---|
labels | InlineCitationLabels | — | Override 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>
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | — |
url | string | — | — |
description | string | — | — |
InlineCitationQuoteProps
Extends HTMLAttributes<HTMLQuoteElement>
No own props — see the extended type above for available props.