Accessibility

Here you’ll find a description of accessibility attributes

What is it?

This component enables accessibility elements, such as a text message that can be read by a screen reader.

AttributesTypeRequiredDefinition
accessibleBooleanIndicates whether the component will be interpreted as accessible. Default is true.
accessibilityLabelStringContains a message that will be spoken by programs like VoiceOver.
isHeaderBooleanIndicates whether the component is a header. Default is false.

How to use it?

Container(
    children = listOf(
        Image(
            path = ImagePath.Remote("https://i.ibb.co/rvRN9kv/logo.png")
        ).setAccessibility {
            accessible = true
            accessibilityLabel = "Image Label"
        }
    )
)

👉 Test this example on Web Playground