Teaser
Source: https://dripyard.com/docs/dripyard-base/components/teaser
Theme: dripyard-base
A component for displaying article teasers with optional image, title, content, and meta information. The teaser creates a structured layout with flex positioning and consistent spacing.
Usage
{{ include('dripyard_base:teaser', {
attributes,
title,
href,
}, with_context = false) }}
Accessibility Considerations
- Uses semantic `` element for proper content structure
- Title uses heading level 3 (``) for appropriate content hierarchy
- Link is properly associated with the title text
- Meta information is semantically structured
- Relies on the image-or-media component for proper image accessibility
Slots and Props
Props
title(required) - The teaser title texthref(required) - The link URL for the teaser
Slots
teaser_content(required) - Main content areameta(optional) - Meta information area (author, date, etc.)