Vela UI Docsvenizia.ai

ruler

Ruler, 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-ruler.

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

Installation

pnpm dlx velaui add @velaui/icon-ruler

Usage

// components/icons/ruler.tsx
import Ruler from "@/components/icons/ruler"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Ruler({ size = 24, strokeWidth = 1, className, ref, ...props }: RulerProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M9.95561 17.9868L8.11357 16.1447M12.7187 15.2237L10.8766 13.3817M15.4817 12.4607L13.6397 10.6186M18.2448 9.6976L16.4028 7.85556M8.32423 21.2189L21.2185 8.3246C21.7272 7.81593 21.7272 6.99122 21.2185 6.48255L17.5179 2.78189C17.0092 2.27322 16.1845 2.27322 15.6758 2.78189L2.78152 15.6762C2.27286 16.1848 2.27286 17.0096 2.78152 17.5182L6.48219 21.2189C6.99085 21.7276 7.81556 21.7276 8.32423 21.2189Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
Ruler.displayName = "Ruler";

export default Ruler;