{{ component('base.button', {text: 'test'}) }}
Name | Default | Description |
---|---|---|
text | required |
The translation key. |
tagName | "button" |
The tag to use for the button. |
size | "large" |
Size of button. One of "large", "normal". |
type | Type of button. One of "submit", "button". | |
href | The href attribute to use for the button. | |
extraClasses | Class(es) of button element. |
{{ component('base.icon', {name: 'menu'}) }}
Name | Default | Description |
---|---|---|
name | required |
The name of the icon |
size | "standard" |
Size of icon. One of "standard", "small", "original", "logo-small" (only for logo). |
style | "primary" |
Style of icon. Multiple of "primary", "light", "badge", "original", "logo-white" (only for logo). |
class | Class(es) of icon element. "logo" class is needed for Kompass logo. | |
tooltip | Tooltip for the icon. Use {position: "top", text: "text"} to edit text and postion. See Tooltips | |
forceFullMarkup | false |
Multiple instance of the same icon use references to one single definition. If the old inlining behaviour should be used, set this option to true. It is set true by default for Logo.svg and Nordkette.svg because else the svgs are broken |
{{ component('base.image', {image: TimberImage}) }}
Name | Default | Description |
---|---|---|
image | required |
The timber image. |
autosize | true |
Use autosizing? |
copyright | Overwrite the image copyright. Defaults to copyright set in media meta fields. | |
hideCopyright | false |
Explicitly hide copyright |
sizes | Set the sizes attribute on the image tag. | |
class | Class(es) of icon element. |
{{ component('base.video', {video: TimberImage}) }}
Name | Default | Description |
---|---|---|
video | required |
The video object. (Wrapped as timber image) |
autoplay | true |
Use autoplay? |
muted | true |
Should be muted? |
loop | true |
Should loop the video? |
controls | false |
Should show video controls? |
class | Class(es) of icon element. |
headline
attributetagName
{{ component('base.crossheading', {headline: 'Cross heading'}) }}
Name | Default | Description |
---|---|---|
headline | required |
The headline text. |
tagName | "div" |
The tag to use for the headline. |
options.autoheight
options.disableAnchors
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
{{ component('base.carousel', {slides: slides}) }}
Name | Default | Description |
---|---|---|
slides | required |
An array with slide markup. |
name | Name of carousel. Added to class list. | |
showBullets | true |
Set to false to disable bullets |
options | An object with glidejs options. | |
options.autoheight | false |
Enable autoheight for glidejs |
options.disableAnchors | false |
Disable Anchors component to enable clicking on cards inside the slider |
{{ component('base.loader') }}
Name | Default | Description |
---|---|---|
size | Size of the loader (small, default (empty), big) | |
color | Color of the loader. Defaults to primary color (see docs) |
height
0.1height
0.2height
0.3height
0.5max
0max
0.2max
1{{ component('base.parallax', {content: content}) }}
Name | Default | Description |
---|---|---|
content | required |
Content of parallax container |
height | 0.25 |
Height of container. Relative to width. |
max | 0.75 |
Maximum effect strength. 1 means content is fix (content height must be large enough). 0 means no effect at all. |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
{{ component('base.card', {front: front}) }}
Name | Default | Description |
---|---|---|
front | required |
The content on the "front". |
back | The content on the "back" if any. | |
class | Class(es) of card element. |
{{ component('base.card-layouts.grid', {elements: elements}) }}
Name | Default | Description |
---|---|---|
elements | required |
Array of Elements having the properties used by see: base.card-layouts.front and base.card-layouts.back |
placeholder | An Element like one item of elements used to fill the grid | |
profileImage | If set to true the image will be rounded | |
class | Class(es) of card element. |
{{ component('base.card-layouts.front', {image: image, title: title}) }}
Name | Default | Description |
---|---|---|
image | required |
The timber image. |
title | The Title of the Card | |
subline | A subline, will be placed under the title | |
profileImage | false |
If set to true the image will be rounded. |
class | Class(es) of card element. |
{{ component('base.card-layouts.back', {title: image, text: title}) }}
Name | Default | Description |
---|---|---|
title | required |
The title of the card. |
text | required |
The text of the card. |
class | Class(es) of card element. |
import {openLoginOverlay} from '../login/components/calltologin/calltologin';
// use somewhere in your app flow
openLoginOverlay();
import {openPremiumOverlay} from '../premium/components/overlay/overlay';
// use somewhere in your app flow
openPremiumOverlay('infoText');
{{ component('base.sharing') }}
{{ component('base.breadcrumb', {items: [{url: '', text:''},{url: '', text:''} ]}) }}
{{ component('base.alert', {text: 'This is a real message.'}) }}
Name | Default | Description |
---|---|---|
text | required |
The message to show |
color | red darken-1 |
The color class used to set the background color. See materializecss |
class | Any additional classes to add to the alert box. | |
closable | true |
If closable is true the box has a close icon and can be dismissed by clicking it. |
{{ component('base.paging', {pagination: pagination}) }}
Name | Default | Description |
---|---|---|
pagination | required |
The Timber Pagination object. |
{{ component('tour.map', {tour: tour}) }}
Name | Default | Description |
---|---|---|
tour | required |
Array of arrays in the format [[lng, lat], [lng, lat], ...] |
{{ component('base.sidebyside') }}
Name | Default | Description |
---|---|---|
items | required |
The array with all items to display |
items.headline | Headline of the item | |
items.text | The text of the item | |
items.image | The image beside the item | |
items.alignment | required |
whether the item has the image on the right or on the left (values: "left", "right") |
items.url | The target url the items image should link to | |
items.ratio | The image ratio | |
items.icon | The icon next to the headline |
{{ component('base.grid', {items: items}) }}
Name | Default | Description |
---|---|---|
items | required |
Array of html elements |
sort | false |
Sort by priority |
contentWidth | false |
Grid should have the width of the main content. |
{{ component('base.pinbox') }}
Name | Default | Description |
---|---|---|
post | The post object. You can overwrite values from the post with the attributes below. | |
title | The title of the box | |
href | Href attribute of the box link | |
image | The background timber image. | |
imageSizes | The image sizes attribute. | |
text | The text of the box | |
tag | The tag/category of the box. | |
date | The date of the box content. | |
ratio | 16/9 |
The box aspect ratio. |
showText | false |
Weather or not to always show text. Default is showing text on hover |
{{ component('base.tabs', tabs) }}
Name | Default | Description |
---|---|---|
items | required |
An array of tab items |
items[].title | required |
The Tab title |
items[].href | The Tab href. If not available, tab is active. | |
items[].target | Overwrite the target attribute. | |
items[].hidden | Flag for hiding unwanted items. | |
items[].featured | Display important tabs in primary style. |
<h1>Headline h1</h1>
<h2>Headline h2</h2>
<h3>Headline h3</h3>
<h4>Headline h4</h4>
<h5>Headline h5</h5>
<h6>Headline h6</h6>
or use classes
<div class="h1">Headline h1</div>
<h4 class="h2">Headline h2</div>