Preview
Usage
Located at the bottom right of an avatar, the presence indicator displays a user's current availability. At a glance, check if a user is available, on a call, in a meeting, away, set to Do Not Disturb, or offline. Most states are inferred automatically from user activity; Do Not Disturb is a state the user explicitly opts into.
By default, the dot contains a state-specific glyph so state isn't conveyed by color alone: a checkmark for active, a minus dash for busy and dnd. Consumers who want a dot-only treatment can opt out with :show-icon="false". The away and offline states do not render a glyph.
Variants and Examples
Active
When a user is available.
Busy
When a user is unavailable due to being 'On a call' or 'In a meeting'. Additionally, a text label indicating their specific status will appear under the user's name.
Do not Disturb
When a user has explicitly silenced themselves. The dot uses a border-only treatment in the unavailable color with a minus dash glyph.
Away
When a user has a scheduled meeting on their synced calendar (Google G Suite or Microsoft Office 365) and is not actively participating in it through the app. Additionally, 'In a meeting' will appear under the user's name.
Offline
When a user has not logged in for their first time.
Without icon
Pass :show-icon="false" for a dot-only treatment across all states. The offline state never renders a glyph regardless of showIcon.
Vue API
import { DtPresence } from '@dialpad/dialtone-vue';Props
Classes
Accessibility
You may wish to announce any live changes to this component via the screen reader since this is only a visual indicator.
If you'd like for a screen reader to read out any changes to Presence, you should pass the srText prop so it is
read by AT and set the aria-live attribute to either 'polite' or 'assertive'.
Even though the component has a role of "status" to assist SR apps in reading out status changes, its default
'aria-live' value is set to 'off'.
See W3C guidelines for more information.
Example:
Abbreviations / symbols should be read out in full for voiceover / screen readers.