Vela UI Docsvenizia.ai

mouse

Mouse, 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-mouse.

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

Installation

pnpm dlx velaui add @velaui/icon-mouse

Usage

// components/icons/mouse.tsx
import Mouse from "@/components/icons/mouse"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Mouse({ size = 24, strokeWidth = 1, className, ref, ...props }: MouseProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M12 7.7999V10.1999M12 2.3999C10.4087 2.3999 8.88258 3.00676 7.75736 4.08697C6.63214 5.16718 6 6.63226 6 8.1599V15.8399C6 17.3675 6.63214 18.8326 7.75736 19.9128C8.88258 20.993 10.4087 21.5999 12 21.5999C13.5913 21.5999 15.1174 20.993 16.2426 19.9128C17.3679 18.8326 18 17.3675 18 15.8399V8.1599C18 6.63226 17.3679 5.16718 16.2426 4.08697C15.1174 3.00676 13.5913 2.3999 12 2.3999Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
Mouse.displayName = "Mouse";

export default Mouse;