Skip to content

Info Panel

The Info Panel component provides a simple, structured container for displaying information with header, content, and footer sections. It’s a CSS-only component designed for presenting content in a clean, organized format.

This component has no external dependencies beyond the Metro UI core CSS.

<!-- Basic info panel -->
<div class="info-panel">
<div class="info-panel-header">
Panel Title
</div>
<div class="info-panel-content">
<p>This is the main content of the info panel.</p>
<p>You can add any HTML content here.</p>
</div>
<div class="info-panel-footer">
<button class="button">Action Button</button>
</div>
</div>
<!-- Info panel without footer -->
<div class="info-panel">
<div class="info-panel-header">
Panel Title
</div>
<div class="info-panel-content">
<p>This panel has no footer section.</p>
</div>
</div>
<!-- Info panel without header -->
<div class="info-panel">
<div class="info-panel-content">
<p>This panel has no header section.</p>
</div>
<div class="info-panel-footer">
<button class="button">Action Button</button>
</div>
</div>
ClassDescription
.info-panelMain container for the info panel
.info-panel-headerHeader section of the info panel
.info-panel-contentContent section of the info panel
.info-panel-footerFooter section of the info panel

The Info Panel component doesn’t use CSS variables for styling. Instead, it uses the following default styles:

  • Background color: White
  • Text color: Dark
  • Text alignment: Center
  • Padding: 30px
  • Text transform: Uppercase
  • Font size: 18px
  • Font weight: 500
  • Letter spacing: 2px
  • Line height: 1.2
  • White space: nowrap
  • Padding: 20px 40px
  • Padding: 40px
/* Custom styling example */
.custom-info-panel {
background-color: #f0f0f0;
color: #333;
border: 1px solid #ddd;
border-radius: 4px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.custom-info-panel .info-panel-header {
background-color: #e0e0e0;
border-bottom: 1px solid #ddd;
}
.custom-info-panel .info-panel-footer {
background-color: #e0e0e0;
border-top: 1px solid #ddd;
}
<div class="info-panel">
<div class="info-panel-header">
System Information
</div>
<div class="info-panel-content">
<p><strong>Version:</strong> 5.1.0</p>
<p><strong>Last Updated:</strong> May 2, 2023</p>
<p><strong>Status:</strong> Active</p>
</div>
</div>
<div class="info-panel">
<div class="info-panel-header">
Subscribe to Our Newsletter
</div>
<div class="info-panel-content">
<p>Stay updated with our latest news and promotions.</p>
<input type="email" placeholder="Your email address">
</div>
<div class="info-panel-footer">
<button class="button primary">Subscribe</button>
</div>
</div>
<div class="info-panel">
<div class="info-panel-header">
Premium Features
</div>
<div class="info-panel-content">
<ul class="unstyled-list">
<li>✓ Advanced Analytics</li>
<li>✓ Unlimited Storage</li>
<li>✓ Priority Support</li>
<li>✓ Custom Branding</li>
</ul>
</div>
<div class="info-panel-footer">
<button class="button success">Upgrade Now</button>
</div>
</div>
  1. Keep header text concise and descriptive
  2. Use consistent styling for related info panels
  3. Ensure content is well-organized and easy to read
  4. Use the footer for primary actions related to the panel content
  5. Consider using grid or flex layouts to arrange multiple info panels