Skip to main content
These modifiers shape how a component is announced and navigated by VoiceOver, TalkBack, and other assistive technologies. accessibilityLabel provides the spoken name; accessibilityValue adds dynamic state like a percentage; accessibilityHidden removes purely decorative elements from the accessibility tree; accessibilityRemoveTraits strips default traits like “button” or “image”. For additional context use accessibilityHint, and to add traits use accessibilityAddTraits.

accessibilityLabel

Sets the VoiceOver label for a component.
label
string
required
The text that VoiceOver reads when the user focuses on the component.
Label an icon button
Label an image

accessibilityValue

Sets the current accessibility value for a component, such as a percentage or status.
value
string
required
The current value of the component, read by VoiceOver after the label. For example, “50 percent” for a progress indicator.
Set a value for a progress indicator
Set a value for a custom rating display

accessibilityHidden

Hides a component from assistive technologies like VoiceOver.
isHidden
boolean
default:"true"
Whether to hide the component from assistive technologies. Defaults to true.
Hide a decorative element
Conditionally hide from accessibility

accessibilityRemoveTraits

Removes default accessibility traits from a component.
traits
AccessibilityTraits | AccessibilityTraits[]
required
One or more accessibility traits to remove from the component. See AccessibilityTraits.
Remove the button trait from a Button used as a label
Remove multiple traits

See also