The rectangle icon: a 24 by 24 stroke glyph that takes its colour from the text around it.

pnpm add @behivetech/icons.rectangle
  • icon

This is the snapshot of v0.1.0, the current version, as recorded on 2026-11-10. The live page runs its examples →

registry/behivetech/icons/rectangle at v0.1.0, snapshotted 2026-11-10

rectangle.tsx
1import { createIcon } from "@behivetech/icons.base";
2
3/** The rectangle icon: a stroke glyph on a 24 by 24 grid that inherits the text colour. */
4export const RectangleIcon = /*#__PURE__*/ createIcon(
5 "RectangleIcon",
6 <rect x="2" y="5" width="20" height="14" rx="1" />,
7);
8
9export default RectangleIcon;
index.ts
1export { RectangleIcon, default } from "./rectangle.js";
rectangle.example.tsx
1import { RectangleIcon } from "./rectangle.js";
2
3/** The icon at each size; it takes its colour from the surrounding text. */
4export const RectangleIconSizes = () => (
5 <>
6 <RectangleIcon size="sm" />
7 <RectangleIcon />
8 <RectangleIcon size="lg" />
9 <RectangleIcon size="xl" />
10 </>
11);
12
13/** Named with `titleAccess`, so assistive technology announces it. */
14export const NamedRectangleIcon = () => (
15 <RectangleIcon titleAccess="Rectangle" />
16);