Built-in Widgets
Valeros comes with a comprehensive set of built-in widgets for common use cases. Each widget can be configured using base options (available to all widgets) or component-specific options.
To create your own custom widget components, see Creating Custom Widgets.
TextWidget
Component ID: text-widget
Simple text display for descriptive content.
Example Properties: description, dateCreated, birthDate, deathDate
Component-Specific Options (TextWidgetOptions):
asHeader- Render text as a semantic<h2>header element with bold styling (mutually exclusive withlargeFont)largeFont- Use larger font size without header semantics (mutually exclusive withasHeader)maxLength- Truncate text at specified lengthenableHighlights- Enable search term highlighting
Example:
{
id: 'description',
properties: ['description'],
componentId: 'text-widget',
options: {
propertyLabel: 'Description',
largeFont: true,
maxLength: 200,
},
}LinkWidget
Component ID: link-widget
Displays clickable links to entities and concepts. Uses TextWidgetOptions for literal values.
Example Properties: creator, publisher, about, genre, material, hasOccupation
Component-Specific Options (TextWidgetOptions):
asHeader- Render literal values as a semantic<h2>header element with bold styling (mutually exclusive withlargeFont)largeFont- Use larger font size for literal values without header semantics (mutually exclusive withasHeader)maxLength- Truncate text at specified lengthenableHighlights- Enable search term highlighting
Example:
{
id: 'creator',
properties: ['creator'],
componentId: 'link-widget',
options: {
propertyLabel: 'Creator',
icon: 'user',
},
}ImageGalleryWidget
Component ID: image-gallery-widget
Image gallery with zoom and PhotoSwipe lightbox.
Example Properties: associatedMedia
Component-Specific Options (ImageGalleryWidgetOptions):
maxThumbnails- Maximum number of thumbnails to displayenableLightbox- Enable PhotoSwipe lightbox functionality
Example:
{
id: 'image-thumb',
properties: ['associatedMedia'],
componentId: 'image-gallery-widget',
options: {
position: 'top',
maxThumbnails: 1,
enableLightbox: false,
noPadding: true,
},
}MapWidget
Component ID: map-widget
Geographic visualization with Leaflet.
Example Properties: contentLocation, location, birthPlace, deathPlace, geo
Example:
{
id: 'location',
properties: ['contentLocation', 'location'],
componentId: 'map-widget',
options: {
propertyLabel: 'Location',
icon: 'map-pin',
showOriginalLink: true,
},
}MediaWidget
Component ID: media-widget
Orchestrator widget that selects the appropriate media viewer based on available data.
Example Properties: associatedMedia
Automatically selects:
- IIIF viewer - When IIIF Presentation manifest is available (Tify, Mirador, or UniversalViewer)
- ImageGalleryWidget - When no IIIF manifest is available
Options:
iiifViewer(optional): Specify which IIIF viewer to use when a manifest is available'tify'(default) - Tify IIIF viewer'mirador'- Mirador IIIF viewer'universalviewer'- UniversalViewer IIIF viewer
Example:
{
id: 'media',
properties: ['associatedMedia'],
componentId: 'media-widget',
options: {
showPropertyLabel: false,
position: 'left',
iiifViewer: 'tify',
},
}JsonWidget
Component ID: json-widget
Fallback widget for unmapped properties. Displays raw JSON data.
Used for: Any property without specific widget mapping
ReferringNodesWidget
Component ID: referring-nodes-widget
Displays objects that reference the current object.
Example Properties: id
Example:
{
id: 'referring-nodes',
properties: ['id'],
componentId: 'referring-nodes-widget',
options: {
propertyLabel: 'Referring Objects',
icon: 'link',
},
}SeparatorWidget
Component ID: separator-widget
Visual separator between sections.
Component-Specific Options (SeparatorWidgetOptions):
header- Optional header text for the separator
Example:
{
id: 'separator',
properties: [],
componentId: 'separator-widget',
options: {
showPropertyLabel: false,
header: 'Additional Information',
},
}AddressWidget
Component ID: address-widget
Displays postal addresses in a formatted way.
Example Properties: address
Example:
{
id: 'address',
properties: ['address'],
componentId: 'address-widget',
options: {
propertyLabel: 'Address',
icon: 'home',
},
}DatasetWidget
Component ID: dataset-widget
Shows dataset information. Filters for Dataset type within isPartOf property.
Example Properties: isPartOf
Example:
{
id: 'dataset',
properties: ['isPartOf'],
componentId: 'dataset-widget',
options: {
propertyLabel: 'Dataset',
icon: 'archive',
},
}