Article

An editorial container that styles children HTML elements.

Published Last updated: 4.0.0 Change log Github NPM
Twig Usage
  {% include '@bolt-elements-article/article.twig' with {
  content: 'This is an article.',
} only %}
Schema
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case.
Prop Name Description Type Default Value Option(s)
attributes

A Drupal-style attributes object with extra attributes to append to this component.

object
content *

Content of the article.

any
tag

Set the HTML tag for the content container.

string article
  • article or div
Install Install
  npm install @bolt/elements-article
Dependencies @bolt/core-v3.x