IntentButton
The IntentButton is a dedicated component for sending
intents.
The IntentButton only works within the AppShell context.
Note
See Accessibility in Design Foundations for explanations of key concepts and best practices.
Keyboard accessibility and focus
IntentButton handles focus management out of the box. When the panel opens,
focus moves into the revealed content; when it closes, focus returns to the
trigger.
- Do provide a meaningful accessible name for the revealed content, such as the title of the panel or dialog.
- Don't override the component's built-in focus handling. Focus must move into the revealed content when the panel opens, and return to the trigger on close, so screen readers can announce the state change correctly.
- Do ensure that focus returns to the trigger when the content closes.
Accessible names and roles
IntentButton is designed with a prefix icon and room for a text label.
- Do verify that the button's visible text matches its accessible name.
- Don't add alt text to the icon — it would be announced separately, creating redundant announcements.