The cart icon: a 24 by 24 stroke glyph that takes its colour from the text around it.
Examples of v0.1.0 are shown as code; only the latest version runs live. Open the live examples →
The icon at each size; it takes its colour from the surrounding text.
Cart Icon Sizes
1const CartIconSizes = () => (2 <>3 <CartIcon size="sm" />4 <CartIcon />5 <CartIcon size="lg" />6 <CartIcon size="xl" />7 </>8);910render(<CartIconSizes />);
Named with `titleAccess`, so assistive technology announces it.
Named Cart Icon
1const NamedCartIcon = () => <CartIcon titleAccess="Cart" />;23render(<NamedCartIcon />);