FeatureIcon

Accessibility

Accessibility Props

NameTypeDefaultDescription
altstring""Text alternative for the icon, used by screen readers to describe the image.

Image Announcements and Alt Text

  • alt="" (default): Icon is treated as decorative and ignored by screen readers
  • alt="text": Screen readers will announce the provided text

Best Practices

Empty alt text

  • The icon has adjacent text describing the feature
  • The icon is purely decorative and doesn’t add meaningful information
<Stack direction="row" align="center">
<FeatureIcon name="TicketFlexi" alt="" />
<Text>Flexi Ticket</Text>
</Stack>

Descriptive alt text

  • The icon stands alone without accompanying text
  • The icon conveys unique information
<FeatureIcon name="TicketFlexi" alt="Flexible ticket option" />

Avoid redundant information

<!-- DON'T do this -->
<FeatureIcon name="TicketSaver" alt="Saver Ticket" />
<Text>Saver Ticket</Text>