Inline Alert
A static status message in four severities, sitting in the flow.
6 फ्रेमवर्कशुरुआती
The "Note:" block in a page of prose - an alert with no ARIA at all.
<!--
The documentation callout - the "Note:" / "Tip:" block in a page of prose. It
is an alert only in family resemblance; what makes it its own thing is the
ARIA it deliberately does NOT have:
- No role="alert", no role="status", no live region of any kind. This is body
copy. It was on the page before the reader arrived and will be there after
they leave; there is no event to announce.
- <aside>, so it is exposed as a complementary landmark - a screen-reader user
can skip it, or jump straight to it, exactly like a sighted reader skims
past a sidebar.
- The "Note" label is real text, not a ::before. It is the first thing read
aloud, and it's what makes the block make sense out of context.
The left accent bar is decoration on top of that, never the signal.
-->
<aside class="callout">
<p class="callout__label">
<svg class="callout__icon" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path d="M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm1 4a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-2 3a1 1 0 0 1 2 0v5a1 1 0 1 1-2 0V9Z" />
</svg>
Note
</p>
<p class="callout__text">
Rotating a key invalidates every token signed with it. Deploy the new key to
all consumers before you revoke the old one.
</p>
</aside>| Prop | टाइप | डिफ़ॉल्ट | विवरण |
|---|---|---|---|
label | string | 'Note' | कॉलआउट के ऊपर छोटा शीर्षक, जैसे "ध्यान दें"। |
childrenआवश्यक | ReactNode | - | कंपोनेंट के अंदर रेंडर होने वाला कंटेंट। |
className | string | - | रूट एलिमेंट पर मर्ज होने वाली अतिरिक्त क्लासेज़। |
What defines this one is what it omits. No role, no live region: it is body copy that was on the page before the reader arrived, and there is no event to announce. <aside> exposes it as a complementary landmark, so it can be skipped or jumped to exactly as a sighted reader skims a sidebar. Keep the label as real text - it is read first and it is what makes the block make sense out of context. The accent bar and icon are decoration layered on a signal that already reads without them.