Skip to content
AI Elements

Sources

Server Component

Expandable list of sources the model used.

Import

tsx
import { Sources } from "@cronus-ui/ui";
bash
npx cronus-ui add sources

Examples

API Reference

Generated from the component's exported types.

SourcesProps

Extends ComponentProps<typeof Collapsible>

Skip SourcesProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>Ref forwarded to the underlying DOM node.

SourcesTriggerLabels

Skip SourcesTriggerLabels props table
PropTypeDefaultDescription
usedSources*
string

SourcesTriggerProps

Extends ComponentProps<typeof CollapsibleTrigger>

Skip SourcesTriggerProps props table
PropTypeDefaultDescription
ref
Ref<HTMLButtonElement>Ref forwarded to the underlying DOM node.
count*
number
labels
Partial<SourcesTriggerLabels>Override default English strings.

SourcesContentProps

Extends ComponentProps<typeof CollapsibleContent>

Skip SourcesContentProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>Ref forwarded to the underlying DOM node.

SourceProps

Extends ComponentProps<"a">

Skip SourceProps props table
PropTypeDefaultDescription
ref
Ref<HTMLAnchorElement>Ref forwarded to the underlying DOM node.