Vela UI Docsvenizia.ai

compass

Compass, 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-compass.

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

Installation

pnpm dlx velaui add @velaui/icon-compass

Usage

// components/icons/compass.tsx
import Compass from "@/components/icons/compass"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Compass({ size = 24, strokeWidth = 1, className, ref, ...props }: CompassProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M12 21.5999C17.302 21.5999 21.6 17.3018 21.6 11.9999C21.6 6.69797 17.302 2.3999 12 2.3999C6.69809 2.3999 2.40002 6.69797 2.40002 11.9999C2.40002 17.3018 6.69809 21.5999 12 21.5999Z" stroke="currentColor" strokeLinejoin="round"/>
      <path d="M15.4976 8.50296L14.6491 14.1515L9.00057 15L9.84909 9.35149L15.4976 8.50296Z" stroke="currentColor" strokeLinejoin="round"/>
    </svg>
  );
}
Compass.displayName = "Compass";

export default Compass;