Examples
With subtext
Supporting text under the title.
With stacked icon
stacked=true puts the icon above the title (pf-m-stacked
on the header).
With large icons
displayLg=true adds pf-m-display-lg for a bigger stacked
icon.
With long subtext
Long body text wraps inside the tile instead of widening it.
Tiles with single selection
Click or press Enter — exactly one tile stays selected (Alpine, radio semantics).
Tiles with multiple selection
Tiles toggle independently (checkbox semantics).
Documentation
Tile props
Parameters accepted by
{#include components/data-display/tile ... /}. Model mode: pass
tile=<Tile> built in Java instead — the Java tab on each example shows the
builder.
| Name | Type | Description |
|---|---|---|
* title
|
String | Tile title. |
id
|
String | DOM id on the root; omit unless something else references the tile. |
iconName
|
String |
Icon as set:slug, e.g. fa:plus.
|
bodyText
|
String | Supporting text under the header. |
selected
|
Boolean |
pf-m-selected.
|
disabled
|
Boolean |
pf-m-disabled.
|
stacked
|
Boolean |
Icon above the title (pf-m-stacked on the header).
|
displayLg
|
Boolean |
Larger stacked icon (pf-m-display-lg).
|
attrs
|
String (raw) |
Raw attribute passthrough on the root — Alpine directives etc. Inherits through nested includes; shadow
with attrs=null when composing.
|
Usage
Prefer Card. PatternFly deprecated Tile in favor of Card with
selectable / clickable modifiers, which cover the same
single- and multi-select patterns with richer content. Reach for Tile only when matching existing markup. Selection
is runtime state — drive pf-m-selected from Alpine rather than hardcoding it.