Icon Content
Table of Contents
Specifications
Properties
| Property | Type | Description | Required | Default | 
|---|---|---|---|---|
| icon | string | 
		Name of Fontawesome icon to include. Can be namespaced with a style like light/book | Yes | - | 
| icon_class | string | Class applied to icon | No | - | 
| content | string | Inner main HTML content | Yes | - | 
Styling
Modifiers
| Name | Class | Description | 
|---|---|---|
| Stack | .tux-c-icon-content--stack | Alternate layout that keeps the icon vertically above the content in all screen sizes | 
Changelog
6.9.0 (2024-04-16)
2.4.0 (2023-01-04)
- fix: align icon with utility text align class (deda67b)
 
1.18.0
- icon-content added
 
Related
Contains
Other core components embedded within this template.
Examples
Simple content
{{ include( 'components/icon-content.twig', {
	icon: "wheat"
	icon_class: "tux-c-icon--sm"
	content: "<p>Nullam id dolor id nibh ultricies vehicula ut id elit. Maecenas faucibus mollis interdum. Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>"
} ) }}Alternate icon style
Icons can be styled with any available modifiers.
{{ include( 'components/icon-content.twig', {
	icon: "bicycle"
	icon_class: "tux-c-icon--circle tux-c-icon--md"
	content: "<h4>Ultricies Magna Sem</h4><p>Nulla vitae elit libero, a pharetra augue. Curabitur blandit tempus porttitor. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Donec id elit non mi porta gravida at eget metus.</p>"
} ) }}Stack
Typically used at the beginning of a new section.
{{ include( 'components/icon-content.twig', {
	class: "tux-c-icon-content--stack"
	icon: "sunglasses"
	icon_class: "tux-c-icon--md"
	content: "<h4>Ultricies Magna Sem</h4>"
} ) }}