{
  "element": "nve-alert",
  "entrypoint": "@nvidia-elements/core/alert/alert.examples.json",
  "items": [
    {
      "id": "alert",
      "name": "Default",
      "template": "<nve-alert>alert message</nve-alert>\n",
      "summary": "Basic alert for inline informational messages. Use alerts for persistent feedback that doesn't auto-dismiss, ideal for system status updates, or contextual information that users may need to reference while completing tasks.",
      "description": "",
      "composition": false,
      "tags": []
    },
    {
      "id": "alert-support-status",
      "name": "SupportStatus",
      "template": "<div nve-layout=\"column gap:md\">\n  <nve-alert>Standard</nve-alert>\n  <nve-alert status=\"accent\">Accent</nve-alert>\n  <nve-alert status=\"warning\">Warning</nve-alert>\n  <nve-alert status=\"success\">Success</nve-alert>\n  <nve-alert status=\"danger\">Danger</nve-alert>\n</div>\n",
      "summary": "Alert status variants for semantic messaging. Use accent for informational updates, warning for cautionary messages requiring attention, success for confirmations, and danger for errors or critical issues that may block user progress.",
      "description": "",
      "composition": false,
      "tags": []
    },
    {
      "id": "alert-status",
      "name": "Status",
      "template": "<div nve-layout=\"column gap:md\">\n  <nve-alert>Standard</nve-alert>\n  <nve-alert status=\"accent\">Accent</nve-alert>\n  <nve-alert status=\"warning\">Warning</nve-alert>\n  <nve-alert status=\"success\">Success</nve-alert>\n  <nve-alert status=\"danger\">Danger</nve-alert>\n  <nve-alert status=\"scheduled\">Scheduled</nve-alert>\n  <nve-alert status=\"queued\">Queued</nve-alert>\n  <nve-alert status=\"finished\">Finished</nve-alert>\n  <nve-alert status=\"failed\">Failed</nve-alert>\n  <nve-alert status=\"unknown\">Unknown</nve-alert>\n  <nve-alert status=\"pending\">Pending</nve-alert>\n  <nve-alert status=\"starting\">Starting</nve-alert>\n  <nve-alert status=\"running\">Running</nve-alert>\n  <nve-alert status=\"restarting\">Restarting</nve-alert>\n  <nve-alert status=\"stopping\">Stopping</nve-alert>\n  <nve-alert status=\"ignored\">Ignored</nve-alert>\n</div>\n",
      "summary": "Extended status variants for workflow and process state communication. Use these specialized states (scheduled, queued, running, failed, etc.) in dashboards, build pipelines, or task management interfaces where users need detailed visibility into process lifecycle stages.",
      "description": "",
      "composition": false,
      "tags": []
    },
    {
      "id": "alert-group",
      "name": "GroupDefault",
      "template": "<nve-alert-group>\n  <nve-alert>alert message</nve-alert>\n</nve-alert-group>\n",
      "summary": "Alert group for visually organizing related messages with shared styling. Use alert groups to present many related messages as a cohesive unit, improving scannability and visual hierarchy.",
      "description": "",
      "composition": false,
      "tags": []
    },
    {
      "id": "alert-group-status",
      "name": "GroupStatus",
      "template": "<div nve-layout=\"column gap:md\">\n  <nve-alert-group>\n    <nve-alert>Standard</nve-alert>\n    <nve-alert>Standard</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"accent\">\n    <nve-alert>Accent</nve-alert>\n    <nve-alert>Accent</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"warning\">\n    <nve-alert>Warning</nve-alert>\n    <nve-alert>Warning</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"success\">\n    <nve-alert>Success</nve-alert>\n    <nve-alert>Success</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"danger\">\n    <nve-alert>Danger</nve-alert>\n    <nve-alert>Danger</nve-alert>\n  </nve-alert-group>\n</div>\n",
      "summary": "Alert groups with inherited status styling for all children. Applying status at the group level ensures visual consistency across related messages, perfect for form validation where many fields share the same error context.",
      "description": "",
      "composition": false,
      "tags": []
    },
    {
      "id": "alert-invoker-command",
      "name": "InvokerCommand",
      "template": "<nve-alert-group>\n  <nve-alert id=\"alert-1\">\n    Alert Notification Message 1\n    <nve-icon-button\n      commandfor=\"alert-1\"\n      command=\"--close\"\n      slot=\"actions\"\n      container=\"flat\"\n      icon-name=\"cancel\"\n      size=\"sm\"\n      aria-label=\"close\"\n    ></nve-icon-button>\n  </nve-alert>\n  <nve-alert id=\"alert-2\">\n    Alert Notification Message 2\n    <nve-icon-button\n      commandfor=\"alert-2\"\n      command=\"--close\"\n      slot=\"actions\"\n      container=\"flat\"\n      icon-name=\"cancel\"\n      size=\"sm\"\n      aria-label=\"close\"\n    ></nve-icon-button>\n  </nve-alert>\n</nve-alert-group>\n",
      "summary": "Dismissible alerts using the Invoker Command API for declarative close behavior. Use `commandfor` and `command=\"--close\"` on action buttons to dismiss individual alerts without custom JavaScript event handling.",
      "description": "",
      "composition": false,
      "tags": []
    },
    {
      "id": "alert-closable",
      "name": "Closable",
      "template": "<div nve-layout=\"column gap:md\">\n  <nve-alert-group>\n    <nve-alert closable>Standard</nve-alert>\n    <nve-alert closable>Standard</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"accent\">\n    <nve-alert closable>Accent</nve-alert>\n    <nve-alert closable>Accent</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"warning\">\n    <nve-alert closable>Warning</nve-alert>\n    <nve-alert closable>Warning</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"success\">\n    <nve-alert closable>Success</nve-alert>\n    <nve-alert closable>Success</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"danger\">\n    <nve-alert closable>Danger</nve-alert>\n    <nve-alert closable>Danger</nve-alert>\n  </nve-alert-group>\n</div>\n",
      "summary": "Closable alerts that users can dismiss. Use closable alerts for messages that become irrelevant after reading (like onboarding tips, one-time announcements, or acknowledged warnings), but avoid for critical errors that need to remain visible until resolved.",
      "description": "",
      "composition": false,
      "tags": []
    },
    {
      "id": "alert-actions",
      "name": "Actions",
      "template": "<div nve-layout=\"column gap:md\">\n  <nve-alert-group>\n    <nve-alert> Standard <nve-button slot=\"actions\" container=\"flat\">action</nve-button> </nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"accent\">\n    <nve-alert> Standard <nve-button slot=\"actions\" container=\"flat\">action</nve-button> </nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"warning\">\n    <nve-alert> Warning <nve-button slot=\"actions\" container=\"flat\">action</nve-button> </nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"success\">\n    <nve-alert> Success <nve-button slot=\"actions\" container=\"flat\">action</nve-button> </nve-alert>\n  </nve-alert-group>\n  <nve-alert-group status=\"danger\">\n    <nve-alert> Danger <nve-button slot=\"actions\" container=\"flat\">action</nve-button> </nve-alert>\n  </nve-alert-group>\n</div>\n",
      "summary": "Alerts with action buttons for immediate user response. Include actions when the alert requires user decision-making (like \"Retry\", \"View Details\", or \"Undo\"), making the next step clear and reducing friction in error recovery or task completion flows.",
      "description": "",
      "composition": false,
      "tags": []
    },
    {
      "id": "alert-prominence",
      "name": "Prominence",
      "template": "<div nve-layout=\"column gap:md\">\n  <nve-alert-group prominence=\"emphasis\" container=\"full\">\n    <nve-alert closable\n      ><span slot=\"prefix\">Standard</span> banner message\n      <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group status=\"accent\" prominence=\"emphasis\" container=\"full\">\n    <nve-alert closable\n      ><span slot=\"prefix\">Accent</span> banner message\n      <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group status=\"warning\" prominence=\"emphasis\" container=\"full\">\n    <nve-alert closable\n      ><span slot=\"prefix\">Warning</span> banner message\n      <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group status=\"success\" prominence=\"emphasis\" container=\"full\">\n    <nve-alert closable\n      ><span slot=\"prefix\">Success</span> banner message\n      <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group status=\"danger\" prominence=\"emphasis\" container=\"full\">\n    <nve-alert closable\n      ><span slot=\"prefix\">Danger</span> banner message\n      <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert\n    >\n  </nve-alert-group>\n</div>\n",
      "summary": "High-prominence alerts with emphasis styling for full-width banners. Use prominence=\"emphasis\" for system-wide announcements like maintenance windows, feature launches, or critical security updates that need max visibility and impact across the entire interface.",
      "description": "",
      "composition": false,
      "tags": []
    },
    {
      "id": "alert-content",
      "name": "Content",
      "template": "<nve-alert-group status=\"danger\">\n  <nve-alert>\n    Session Paused:\n    <div slot=\"content\" nve-layout=\"column gap:sm align:stretch\">\n      <p nve-text=\"body sm emphasis\">Failed to verify drives.</p>\n      <pre nve-text=\"sm emphasis\">\n10:06:01 AM [verify] update /virtual:/verify/\n10:06:11 AM [build] update /virtual:/build/\n10:06:22 AM [error] update /virtual:/error/ - failed to connect to remote</pre\n      >\n    </div>\n    <nve-button slot=\"actions\" container=\"flat\">Collapse Details</nve-button>\n  </nve-alert>\n</nve-alert-group>\n",
      "summary": "Alert with complex structured content including expandable details. Use the content slot for rich information like stack traces, validation summaries, or detailed error logs where users need both the high-level message and access to technical details for debugging or reporting.",
      "description": "",
      "composition": false,
      "tags": []
    },
    {
      "id": "alert-color",
      "name": "Color",
      "template": "<div nve-layout=\"column gap:md\">\n  <nve-alert-group color=\"red-cardinal\">\n    <nve-alert>red-cardinal</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"gray-slate\">\n    <nve-alert>gray-slate</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"gray-denim\">\n    <nve-alert>gray-denim</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"blue-indigo\">\n    <nve-alert>blue-indigo</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"blue-cobalt\">\n    <nve-alert>blue-cobalt</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"blue-sky\">\n    <nve-alert>blue-sky</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"teal-cyan\">\n    <nve-alert>teal-cyan</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"green-mint\">\n    <nve-alert>green-mint</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"teal-seafoam\">\n    <nve-alert>teal-seafoam</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"green-grass\">\n    <nve-alert>green-grass</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"yellow-amber\">\n    <nve-alert>yellow-amber</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"orange-pumpkin\">\n    <nve-alert>orange-pumpkin</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"red-tomato\">\n    <nve-alert>red-tomato</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"pink-magenta\">\n    <nve-alert>pink-magenta</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"purple-plum\">\n    <nve-alert>purple-plum</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"purple-violet\">\n    <nve-alert>purple-violet</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"purple-lavender\">\n    <nve-alert>purple-lavender</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"pink-rose\">\n    <nve-alert>pink-rose</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"green-jade\">\n    <nve-alert>green-jade</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"lime-pear\">\n    <nve-alert>lime-pear</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"yellow-nova\">\n    <nve-alert>yellow-nova</nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"brand-green\">\n    <nve-alert>brand-green</nve-alert>\n  </nve-alert-group>\n</div>\n",
      "summary": "Custom color variants for brand-specific styling or extra visual differentiation beyond standard status colors. Use custom colors when standard semantic colors don't match your use case, such as category labels, team assignments, or brand-specific messaging.",
      "description": "",
      "composition": false,
      "tags": [
        "test-case"
      ]
    },
    {
      "id": "alert-custom-color-combinations",
      "name": "CustomColorCombinations",
      "template": "<div nve-layout=\"column gap:md\">\n  <nve-alert-group color=\"blue-indigo\">\n    <nve-alert closable\n      >Custom <code nve-text=\"code\">color</code> will theme the <code nve-text=\"code\">closable</code> icon.</nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group color=\"teal-seafoam\">\n    <nve-alert>\n      Custom <code nve-text=\"code\">color</code> is compatible with <code nve-text=\"code\">actions</code> button.\n      <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n    </nve-alert>\n  </nve-alert-group>\n  <nve-alert-group color=\"pink-rose\" status=\"accent\">\n    <nve-alert\n      >Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields\n      the status icon with custom alert color.</nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group color=\"pink-rose\" status=\"success\">\n    <nve-alert\n      >Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields\n      the status icon with custom alert color.</nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group color=\"pink-rose\" status=\"warning\">\n    <nve-alert\n      >Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields\n      the status icon with custom alert color.</nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group color=\"pink-rose\" status=\"danger\">\n    <nve-alert\n      >Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields\n      the status icon with custom alert color.</nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group color=\"blue-indigo\" status=\"accent\" prominence=\"emphasis\">\n    <nve-alert\n      >Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and\n      <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert\n      color.</nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group color=\"blue-indigo\" status=\"success\" prominence=\"emphasis\">\n    <nve-alert\n      >Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and\n      <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert\n      color.</nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group color=\"blue-indigo\" status=\"warning\" prominence=\"emphasis\">\n    <nve-alert\n      >Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and\n      <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert\n      color.</nve-alert\n    >\n  </nve-alert-group>\n  <nve-alert-group color=\"blue-indigo\" status=\"danger\" prominence=\"emphasis\">\n    <nve-alert\n      >Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and\n      <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert\n      color.</nve-alert\n    >\n  </nve-alert-group>\n</div>\n",
      "summary": "Custom color combinations with status icons and prominence for advanced theming. Custom colors interact with status icons and emphasis styling, useful for maintaining brand consistency while preserving semantic meaning through status indicators.",
      "description": "",
      "composition": false,
      "tags": [
        "test-case"
      ]
    }
  ]
}