Vela UI Docsvenizia.ai

layout-scale

LayoutScale, 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-layout-scale.

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

Installation

pnpm dlx velaui add @velaui/icon-layout-scale

Usage

// components/icons/layout-scale.tsx
import LayoutScale from "@/components/icons/layout-scale"

<LayoutScale 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 LayoutScaleProps extends React.SVGProps<SVGSVGElement> {
  size?: number | string;
}

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function LayoutScale({ size = 24, strokeWidth = 1, className, ref, ...props }: LayoutScaleProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M2.99926 13.2006H9.22426C10.0941 13.2006 10.7993 13.9058 10.7993 14.7756V21.0006M21.6 18.0004L21.6 6.00039C21.6 4.01217 19.9882 2.40039 18 2.40039L6.00002 2.40039C4.0118 2.40039 2.40003 4.01216 2.40002 6.00039L2.40002 18.0004C2.40002 19.9886 4.0118 21.6004 6.00002 21.6004H18C19.9882 21.6004 21.6 19.9886 21.6 18.0004Z" stroke="currentColor"/>
    </svg>
  );
}
LayoutScale.displayName = "LayoutScale";

export default LayoutScale;