The rectangle 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.
Rectangle Icon Sizes
1const RectangleIconSizes = () => (2 <>3 <RectangleIcon size="sm" />4 <RectangleIcon />5 <RectangleIcon size="lg" />6 <RectangleIcon size="xl" />7 </>8);910render(<RectangleIconSizes />);
Named with `titleAccess`, so assistive technology announces it.
Named Rectangle Icon
1const NamedRectangleIcon = () => (2 <RectangleIcon titleAccess="Rectangle" />3);45render(<NamedRectangleIcon />);