Vela UI Docsvenizia.ai

message-square

MessageSquare, one of the 856 Vela UI icons, in the Communication 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-message-square.

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

Installation

pnpm dlx velaui add @velaui/icon-message-square

Usage

// components/icons/message-square.tsx
import MessageSquare from "@/components/icons/message-square"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function MessageSquare({ size = 24, strokeWidth = 1, className, ref, ...props }: MessageSquareProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M6.67828 21.6004L11.687 16.5917H19.6C20.7046 16.5917 21.6 15.6963 21.6 14.5917V4.40039C21.6 3.29582 20.7046 2.40039 19.6 2.40039H4.40002C3.29546 2.40039 2.40002 3.29582 2.40002 4.40039V14.5917C2.40002 15.6963 3.29546 16.5917 4.40002 16.5917H6.67828V21.6004Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
MessageSquare.displayName = "MessageSquare";

export default MessageSquare;