Vela UI Docsvenizia.ai

card-x

CardX, 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-card-x.

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

Installation

pnpm dlx velaui add @velaui/icon-card-x

Usage

// components/icons/card-x.tsx
import CardX from "@/components/icons/card-x"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function CardX({ size = 24, strokeWidth = 1, className, ref, ...props }: CardXProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M14.2101 18.8999H4.61046C3.28501 18.8999 2.2105 17.8254 2.21046 16.5L2.21021 7.50016C2.21017 6.17465 3.28469 5.1001 4.6102 5.1001H19.0096C20.3352 5.1001 21.4097 6.17399 21.4097 7.49951L21.4097 11.7001M2.80974 9.29995H20.8097M18.2172 18.6802L20.0035 16.8939M20.0035 16.8939L21.7898 15.1076M20.0035 16.8939L18.2172 15.1076M20.0035 16.8939L21.7898 18.6802" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
CardX.displayName = "CardX";

export default CardX;