Vela UI Docsvenizia.ai

gear

Gear, 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-gear.

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

Installation

pnpm dlx velaui add @velaui/icon-gear

Usage

// components/icons/gear.tsx
import Gear from "@/components/icons/gear"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Gear({ size = 24, strokeWidth = 1, className, ref, ...props }: GearProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path fillRule="evenodd" clipRule="evenodd" d="M21 7L12 2L3 7V17L12 22L21 17V7ZM12 15.3333C13.9132 15.3333 15.4641 13.841 15.4641 12C15.4641 10.1591 13.9132 8.66667 12 8.66667C10.0868 8.66667 8.5359 10.1591 8.5359 12C8.5359 13.841 10.0868 15.3333 12 15.3333Z" stroke="currentColor" strokeLinejoin="round"/>
    </svg>
  );
}
Gear.displayName = "Gear";

export default Gear;