Skip to main content
VelinStyle v1.3.0
⌂ Home
  1. Docs
  2. Components
  3. Feedback
  4. Announcer

Announcer 1.2.2

The <velin-announcer> component exposes an ARIA live region for polite screen-reader updates after async actions. Added in 0.7.5. Deutsch: Announcer De

Maturity: Documented as stable in VelinStyle 1.2.0. Design Intelligence (plan / review / agent meta) is separate and beta / foundation where noted.

When to use

When not

Example

<velin-announcer></velin-announcer>
<script>
  VelinAnnouncer.announceGlobal('Saved');
</script>

JavaScript API

APIDescription
VelinAnnouncer.announceGlobal(message)Announce via the first velin-announcer on the page
element.announce(message)Announce on a specific instance

Import

Load the bundle once, then use the custom element in your markup:

<script type="module" src="../../dist/velinstyle-components.min.js"></script>
<velin-announcer>…</velin-announcer>

Accessibility