Vela UI Docsvenizia.ai

code-01

Code01, 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-code-01.

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

Installation

pnpm dlx velaui add @velaui/icon-code-01

Usage

// components/icons/code-01.tsx
import Code01 from "@/components/icons/code-01"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Code01({ size = 24, strokeWidth = 1, className, ref, ...props }: Code01Props) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M9.59999 15.0004L6.59999 12.0004L9.59999 9.00039M14.4 9.00039L17.4 12.0004L14.4 15.0004M4.79999 21.6004C3.47451 21.6004 2.39999 20.5259 2.39999 19.2004V4.80039C2.39999 3.47491 3.47451 2.40039 4.79999 2.40039H19.2C20.5255 2.40039 21.6 3.47491 21.6 4.80039V19.2004C21.6 20.5259 20.5255 21.6004 19.2 21.6004H4.79999Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
Code01.displayName = "Code01";

export default Code01;