Provides a simple way to mark up key/value information provided by a Twig hash or JSON object.
https://jadu.github.io/pulsar/docs/components/metadata
{{
html.metadata({
'items': {
'File': 'true_lies.avi',
'Size': '1.2 Gb',
'Type': 'Video'
}
})
}}
Class | Behaviour |
---|---|
.metadata--stacked |
Verically align keys and values |
Option | Type | Description |
---|---|---|
class | string | CSS classes, space separated |
id | string | A unique identifier, if required |
items | hash | A hash of data where key: value = title: description |
data-* | string | Data attributes, eg: 'data-foo': 'bar' |