Badge is a pill with a title, an optional icon and an optional arrow. Use it to point at something new, like a release or a feature. For a static label, use Tag. See the web Badge page for the web version.
Pass onPress to make the badge pressable. Screen readers announce it as a link. Add arrow to show a chevron after the title.
Children render after the title, so you can add your own elements.
- onPress replaces href. There is no effect animation and no textVariant.
- arrow is off by default. On the web it turns on when the badge has an href.
- Badge does not take Flex props, so its padding, background and border are fixed. Use style for the outer view.