Vela UI Docsvenizia.ai

text-input-01

TextInput01, 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-text-input-01.

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

Installation

pnpm dlx velaui add @velaui/icon-text-input-01

Usage

// components/icons/text-input-01.tsx
import TextInput01 from "@/components/icons/text-input-01"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function TextInput01({ size = 24, strokeWidth = 1, className, ref, ...props }: TextInput01Props) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M4.80005 4.7998H8.40005" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
      <path d="M6.60002 8.39981H3.60002C2.93728 8.39981 2.40002 8.93706 2.40002 9.59981V14.3998C2.40002 15.0625 2.93728 15.5998 3.60002 15.5998H6.60002M10.8 8.39981H20.4C21.0628 8.39981 21.6 8.93706 21.6 9.59981V14.3998C21.6 15.0625 21.0628 15.5998 20.4 15.5998H10.8M6.60002 19.1998V4.7998M4.80002 19.1998H8.40002" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
TextInput01.displayName = "TextInput01";

export default TextInput01;