Vela UI Docsvenizia.ai

scan

Scan, 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-scan.

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

Installation

pnpm dlx velaui add @velaui/icon-scan

Usage

// components/icons/scan.tsx
import Scan from "@/components/icons/scan"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Scan({ size = 24, strokeWidth = 1, className, ref, ...props }: ScanProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M8.80002 2.3999H4.53336C3.35515 2.3999 2.40002 3.35503 2.40002 4.53324V8.7999M8.80002 21.5999H4.53336C3.35515 21.5999 2.40002 20.6448 2.40002 19.4666V15.1999M15.2 2.3999H19.4667C20.6449 2.3999 21.6 3.35503 21.6 4.53324V8.7999M21.6 15.1999V19.4666C21.6 20.6448 20.6449 21.5999 19.4667 21.5999H15.2M2.40002 12.0002H21.6" stroke="currentColor" strokeLinecap="round"/>
    </svg>
  );
}
Scan.displayName = "Scan";

export default Scan;