Live demo — this example is server-driven; run the showcase locally for the interactive version.

Content

Use Content straight from a Qute template — parameters and slots instead of Java builders. This reference is generated from the runtime template sources: each template documents its parameters and slots in the header comment shown beneath its include line.

Templates

content

{#include components/data-display/content /}
Content — PatternFly v6 
                                                                                
 Two modes:                                                                     
   1. Wrapper mode (component omitted): renders <div class="pf-v6-c-content">  
      containing the slot. PF v6's CSS styles raw descendant tags (h1-h6, p,    
      ul, ol, dl, blockquote, etc.) automatically.                              
   2. Element mode (component set): renders the element itself with             
      pf-v6-c-content--{component} as its class.                                
                                                                                
 Parameters:                                                                    
   id          (optional) — DOM id                                              
   component   (optional) — one of: h1 | h2 | h3 | h4 | h5 | h6 | p | a |       
                            small | blockquote | pre | hr | ul | ol | dl |      
                            li | dt | dd                                        
   text        (optional, element mode) — simple text content. Falls back to    
                                          the content slot when text is omitted.
   href        (optional, when component="a") — link target                     
   editorial   (optional) — applies pf-m-editorial (larger body / small text)   
   visited     (optional) — applies pf-m-visited (link visited styling)         
   plainList   (optional) — applies pf-m-plain (no bullets) when component is   
                            ul / ol / dl                                        
                                                                                
 Slot:                                                                          
   {#content} — children. In wrapper mode, use raw HTML (h1, p, ul, etc.). In   
                element mode, use whatever inline markup the tag accepts.       
 Model mode: pass contentModel=<org.sitenetsoft.quarkus.pha.model.Content> (param name dodges the content slot).