Vela UI Docsvenizia.ai

key-01

Key01, one of the 856 Vela UI icons, in the Security 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-key-01.

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

Installation

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

Usage

// components/icons/key-01.tsx
import Key01 from "@/components/icons/key-01"

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

/** Custom vela-ui icon, synced from Figma (node under section "Icons"). */
export function Key01({ size = 24, strokeWidth = 1, className, ref, ...props }: Key01Props) {
  return (
    <svg
      ref={ref}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      strokeWidth={strokeWidth}
      className={className}
      {...props}
    >
      <path d="M7.67882 6.5999H7.79999M14.6182 9.38172L21.3071 16.0706C21.4946 16.2582 21.6 16.5125 21.6 16.7778V20.5999C21.6 21.1522 21.1523 21.5999 20.6 21.5999H18.1091V18.9817H15.4909V16.3635L12.2661 13.3266C11.2299 14.1359 9.92578 14.6181 8.50908 14.6181C5.13513 14.6181 2.39999 11.8829 2.39999 8.50899C2.39999 5.13503 5.13513 2.3999 8.50908 2.3999C11.883 2.3999 14.6182 5.13503 14.6182 8.50899V9.38172Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
    </svg>
  );
}
Key01.displayName = "Key01";

export default Key01;