Vela UI Docsvenizia.ai

variant

Variant, 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-variant.

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

Installation

pnpm dlx velaui add @velaui/icon-variant

Usage

// components/icons/variant.tsx
import Variant from "@/components/icons/variant"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Variant({ size = 24, strokeWidth = 1, className, ref, ...props }: VariantProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M11.3842 4.25508C11.7243 3.91497 12.2757 3.91497 12.6158 4.25508L19.7449 11.3842C20.085 11.7243 20.085 12.2757 19.7449 12.6158L12.6158 19.7449C12.2757 20.085 11.7243 20.085 11.3842 19.7449L4.25508 12.6158C3.91497 12.2757 3.91497 11.7243 4.25508 11.3842L11.3842 4.25508Z" stroke="currentColor"/>
    </svg>
  );
}
Variant.displayName = "Variant";

export default Variant;