s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Content · Components

ContentReferencesPanel

No summary has been written for ContentReferencesPanel. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { ContentReferencesPanel } from '@happyvertical/smrt-content/svelte';
Import path
@happyvertical/smrt-content/svelte
Props
4
Props described
4 of 4
Bindable state
0
Callback events
1
Verified release
0.44.0

Props

NameTypeRequiredDescription
referenceIdsstring[]NoIDs of referenced content items.
referencesContentEditorReference[]NoResolved reference objects with metadata for display.
onReferenceIdsChange(referenceIds: string[]) => voidNoInvoked when the user adds or removes a reference.
childrenSnippetNoOptional snippet rendered inside the panel beneath the references list and the "add reference by ID" input. Host applications use this to inject a richer picker (browsing a tenant asset pool, searching an external archive, etc.) without forking the component. The snippet is responsible for calling `onReferenceIdsChange` (or otherwise mutating the parent state) when the user selects an entry.

Bindable state

This component has no bindable public state.

Callback events

  • onReferenceIdsChange(referenceIds: string[]) => void

Examples and explanation