Vela UI Docsvenizia.ai

transform

Transform, one of the 856 Vela UI icons, in the General group: a 24px grid drawn in currentColor, so it takes the colour of the text around it. It installs on its own as @velaui/icon-transform.

  • 16px
  • 20px
  • 24px
  • 32px

Installation

pnpm dlx velaui add @velaui/icon-transform

Usage

// components/icons/transform.tsx
import Transform from "@/components/icons/transform"

<Transform className="size-5 text-muted" />

In use

  • In a button

  • In a sentence

    Due Friday, or whenever the venue confirms.

  • In an input

  • As a badge

    Scheduled
  • In an empty state

    No events on this day yet.

    Browse blocks

Source

import * as React from "react";

export interface TransformProps extends React.SVGProps<SVGSVGElement> {
  size?: number | string;
}

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Transform({ size = 24, strokeWidth = 1, className, ref, ...props }: TransformProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M19.0737 16.5478V7.45302M16.5474 19.0741H7.95792M4.92634 16.2951V7.70565M7.45266 4.92671H16.2948M3.41055 7.45302H6.44213C7.00023 7.45302 7.45266 7.00059 7.45266 6.4425V3.41092C7.45266 2.85282 7.00023 2.40039 6.44213 2.40039H3.41055C2.85245 2.40039 2.40002 2.85282 2.40002 3.41092V6.4425C2.40002 7.00059 2.85245 7.45302 3.41055 7.45302ZM17.5579 7.45302H20.5895C21.1476 7.45302 21.6 7.00059 21.6 6.4425V3.41092C21.6 2.85282 21.1476 2.40039 20.5895 2.40039H17.5579C16.9998 2.40039 16.5474 2.85282 16.5474 3.41092V6.4425C16.5474 7.00059 16.9998 7.45302 17.5579 7.45302ZM3.41055 21.6004H6.44213C7.00023 21.6004 7.45266 21.148 7.45266 20.5899V17.5583C7.45266 17.0002 7.00023 16.5478 6.44213 16.5478H3.41055C2.85245 16.5478 2.40002 17.0002 2.40002 17.5583V20.5899C2.40002 21.148 2.85245 21.6004 3.41055 21.6004ZM17.5579 21.6004H20.5895C21.1476 21.6004 21.6 21.148 21.6 20.5899V17.5583C21.6 17.0002 21.1476 16.5478 20.5895 16.5478H17.5579C16.9998 16.5478 16.5474 17.0002 16.5474 17.5583V20.5899C16.5474 21.148 16.9998 21.6004 17.5579 21.6004Z" stroke="currentColor" strokeLinecap="round"/>
    </svg>
  );
}
Transform.displayName = "Transform";

export default Transform;