Accessibility

aria-pressed

Toggle button state; keep a consistent accessible name when toggling.

Formal Syntax & Structure

react syntaxreact
<button aria-pressed={saved}>Save trail</button>

Working Example

Example Snippetreact
<button aria-pressed={saved}>Save trail</button>
React Reference