Vela UI Docsvenizia.ai

card-number

CardNumber, 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-number.

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

Installation

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

Usage

// components/icons/card-number.tsx
import CardNumber from "@/components/icons/card-number"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function CardNumber({ size = 24, strokeWidth = 1, className, ref, ...props }: CardNumberProps) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M14.4002 18.3001H4.8005C3.47504 18.3001 2.40053 17.2256 2.40049 15.9001L2.40024 6.90031C2.4002 5.5748 3.47473 4.50024 4.80024 4.50024H19.1997C20.5252 4.50024 21.5997 5.57414 21.5997 6.89966L21.5998 11.1002M2.99978 8.7001H20.9998M18.6008 19.4998H20.1247M20.1247 19.4998H21.5429M20.1247 19.4998V13.9362L18.3792 15.1362" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
CardNumber.displayName = "CardNumber";

export default CardNumber;