ph/components

Glider

The glider logo.

Code

Copy into src/components/ph/ .

Glider.astro
---

type Props = astroHTML.JSX.SVGAttributes & {
  label?: string;
};

const { label, class: className, ...rest } = Astro.props;
---

<svg
  viewBox="0 0 3 3"
  xmlns="http://www.w3.org/2000/svg"
  class:list={["block size-6 shrink-0", className]}
  shape-rendering="crispEdges"
  role={label ? "img" : undefined}
  aria-label={label}
  aria-hidden={label ? undefined : "true"}
  focusable="false"
  {...rest}
>
  <rect x="1" y="0" width="1" height="2" fill="var(--glider-a, currentColor)" />
  <rect x="2" y="1" width="1" height="2" fill="var(--glider-b, currentColor)" />
  <rect x="0" y="2" width="1" height="1" fill="var(--glider-c, currentColor)" />
</svg>