Vela UI Docsvenizia.ai

delete

Delete, 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-delete.

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

Installation

pnpm dlx velaui add @velaui/icon-delete

Usage

// components/icons/delete.tsx
import Delete from "@/components/icons/delete"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Delete({ size = 24, strokeWidth = 1, className, ref, ...props }: DeleteProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M10.72 9.84L13.28 12.4M13.28 12.4L15.84 14.96M13.28 12.4L15.84 9.84M13.28 12.4L10.72 14.96M7.22232 18.8L20.32 18.8C21.0269 18.8 21.6 18.2269 21.6 17.52V7.28C21.6 6.57308 21.0269 6 20.32 6L7.22232 6L2.85343 11.7982C2.58498 12.1545 2.58498 12.6455 2.85343 13.0018L7.22232 18.8Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
Delete.displayName = "Delete";

export default Delete;