Tags

Source: https://dripyard.com/docs/dripyard-base/components/tags

Theme: dripyard-base

A component for displaying taxonomy tags in a horizontal layout with an optional title.

Usage

{{ include('dripyard_base:tags', {
  attributes,
  title,
  items,
}, with_context = false) }}

Accessibility Considerations

  • Uses semantic list markup (and) for proper screen reader navigation
  • Title uses heading level 3 (``) for proper content hierarchy
  • Relies on the pill component for individual tag accessibility

Media/Container Queries

  • Uses flexbox with flex-wrap: wrap for responsive layout
  • Tags automatically wrap to new lines as needed
  • No specific breakpoint-based styling

Slots and Props

Props

  • title (string, optional): Display title for the tag list
  • items (array, required): Array of tag items to display
  • attributes (object, optional): HTML attributes for the container

Slots

  • Each item in the items array should contain:
    • content: The tag content to display
    • attributes: HTML attributes for the individual tag item

The component internally uses the pill component for rendering individual tags.

Column Layout Helper

This is the column layout helper, which you can use to configure

  • Vertical and horizontal spacing
  • Vertical and horizontal alignment
  • Spacing between components
  • Enable stickyness

This helper will not be visible unless editing this page.

Current values:

Padding top Not set
Padding bottom Not set
Horizontal alignment Not set
Vertical alignment Not set
Gutter medium
Stickyness Enabled
Hide mobile Not set
Hide desktop Not set