Vanilla Breeze

requirement-card

Display-only card for one NFR ility row. Renders priority + rationale + optional conflict flag for status dashboards and ADR appendices. The prioritization decision itself lives in (was ).

Overview

The <requirement-card> component is a display-only tile for a single Non-Functional Requirement (ility) row — performance, security, accessibility, observability, and so on. It renders the chosen priority, a rationale, and an optional conflict flag for status dashboards, ADR appendices, and review surfaces.

The prioritization decision happens in <quality-target> (which absorbed <nfr-compass> + <nfr-radar>). Use <requirement-card> downstream of that decision — in the documents that consume the choice.

Basic example

Attributes

AttributeTypeDefaultDescription
data-priority enum: critical · important · acceptable · not-relevant Drives :state(priority-*), default pill text, and accent color.
data-conflict boolean Flags a conflict / drift note; renders an emphasized border.
tabindex number Set to 0 to make the card directly focusable + activatable. Otherwise wrap in <a> or <button>.

Slots

SlotDescription
nameIlity label (e.g. “Performance”).
badgeCategory / version / source tag — small uppercase muted text.
priority-pillAuthor-supplied custom pill. Default pill renders from data-priority when this slot is empty.
rationaleWhy this priority was chosen (especially for Critical rows).
conflictsShort conflict / drift note (paired with data-conflict).

Events

EventDetailWhen
requirement-card:click { priority, hasConflict, originalEvent } Bubbles when the card is activated by mouse, keyboard, or touch — only when the card is interactive (wrapped in <a>/<button> or has tabindex).

Related

  • <quality-target> — the polygon-as-UI quality prioritization surface that produces the priorities <requirement-card> displays.
  • <iron-triangle> — project-shape decision (scope / quality / time); pairs with <quality-target>.
  • <score-card> — KPI tile (a different shape with a numeric value + change indicator).