Backpack badge component.
Check the main Readme for a complete installation guide.
import BpkBadge, { BADGE_TYPES } from '@skyscanner/backpack-web/bpk-component-badge';
export default () => (
<BpkBadge
type={BADGE_TYPES.warning}
>
My Badge
</BpkBadge>
);
Check out the full list of props on Skyscanner's design system documentation website.