🚧 Under Construction
This component documentation is currently being developed. Some features may be incomplete.
Quick Links Icons
View in Pattern LabHTML Markup
<figure class="hoo-ql-media">
<img src="/htwoo-core/images/placeholders/ph-16by9.png" class="hoo-ql-img" alt="" loading="lazy">
</figure>
Quick Link Icons provide image-based icons optimized for use within quick link components. These components typically display a visual representation alongside link text.
Description
Quick Link Icons use the <figure> element with an <img> tag to display raster-based images. They’re designed to work seamlessly within quick link components while maintaining proper aspect ratios.
SCSS Imports
Main Component
@n8d/htwoo-core/components/icons
SCSS Partial Location/src/styles/01-atoms/icons/_index.scss
CSS Classes
Base Classes
.hoo-ql-media- Container for the icon or image.hoo-ql-img- The image element with 1:1 aspect ratio
Styling
- Default 1:1 aspect ratio (square)
- Object-fit: cover to maintain proportions
- Responsive sizing based on parent container
Usage Examples
Basic Quick Link Icon
<figure class="hoo-ql-media">
<img src="path/to/icon.png" class="hoo-ql-img" alt="Icon description" loading="lazy">
</figure>
Within a Quick Link Component
<div class="hoo-quicklink">
<figure class="hoo-ql-media">
<img src="path/to/icon.png" class="hoo-ql-img" alt="" loading="lazy">
</figure>
<div class="hoo-quicklink-content">
<h3 class="hoo-quicklink-title">Link Title</h3>
<p class="hoo-quicklink-text">Link description text</p>
</div>
</div>
Accessibility
- Always provide descriptive
altattributes when the image conveys meaning - Use empty
alt=""for decorative images - Use the
loading="lazy"attribute for performance optimization