Content · Components
ContentMetadataFields
No summary has been written for ContentMetadataFields. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.Public export
typescript
import { ContentMetadataFields } from '@happyvertical/smrt-content/svelte';- Import path
@happyvertical/smrt-content/svelte- Props
- 6
- Props described
- 6 of 6
- Bindable state
- 0
- Callback events
- 1
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
dataContentMetadataFieldDataYesCurrent metadata field values.modeContentFieldModeNo`full` (default) shows Author, Description, Tags, URL and File key; `simple` shows Author, Summary and Tags — each marked "(optional)" — inside a collapsed "Details" section.fieldsreadonly ContentMetadataFieldName[]NoExplicit allow-list of fields; overrides the mode's choice.detailsboolean | { open?: boolean; label?: string; }NoWrap the fields in a "Details" disclosure. Defaults to collapsed in simple mode and off in full mode. Pass `{ open: true }` to start open, or `false` when the page supplies its own section.idPrefixstringNoPrefix for field DOM ids, unique per editor on the page (default `content`).onChange(change: Record<string, unknown>) => voidNoInvoked when the user modifies any metadata field.Bindable state
This component has no bindable public state.
Callback events
onChange(change: Record<string, unknown>) => void