Vela UI Docsvenizia.ai

diamond

Diamond, 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-diamond.

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

Installation

pnpm dlx velaui add @velaui/icon-diamond

Usage

// components/icons/diamond.tsx
import Diamond from "@/components/icons/diamond"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Diamond({ size = 24, strokeWidth = 1, className, ref, ...props }: DiamondProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M10.5088 3.83008L8.45828 9.1427L12 20.1699M12 20.1699L15.635 9.0495L13.6777 3.83008M21.6 9.2359L17.5923 3.83008H6.50099L2.40002 9.2359L12 20.1699L21.6 9.2359ZM2.40002 9.2359H21.6" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
Diamond.displayName = "Diamond";

export default Diamond;