Skip to content
Cuelark UI

Hover the icon or press Play. Suggested motion: shake. Pick another to preview it and update the animated code:

VS Code Icons · VscLockSmall

Lock Small icon

A free lock small icon from VS Code Icons, ready for React. Use it static or animated: both versions are below, copy-paste or one shadcn command away. Sized in em and colored by currentColor.

License
CC BY 4.0 license
Project
github.com
Install with shadcn
npx shadcn@latest add https://ui.cuelark.com/r/icons/vscode-codicons/lock-small.json
components/icons/vscode-codicons-lock-small.tsx
import * as React from "react";

/**
 * Lock Small from VS Code Icons (https://github.com/microsoft/vscode-codicons), CC BY 4.0.
 * Via Cuelark UI: ui.cuelark.com/icons/vscode-codicons/lock-small. Sized in em, colored by currentColor.
 */
export function VscLockSmallIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      aria-hidden="true"
      viewBox="0 0 16 16"
      stroke="currentColor"
      fill="currentColor"
      strokeWidth="0"
      width="1em"
      height="1em"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M11 7V5C11 3.346 9.654 2 8 2C6.346 2 5 3.346 5 5V7C3.897 7 3 7.897 3 9V12C3 13.103 3.897 14 5 14H11C12.103 14 13 13.103 13 12V9C13 7.897 12.103 7 11 7ZM6 5C6 3.897 6.897 3 8 3C9.103 3 10 3.897 10 5V7H6V5ZM12 12C12 12.551 11.551 13 11 13H5C4.449 13 4 12.551 4 12V9C4 8.449 4.449 8 5 8H11C11.551 8 12 8.449 12 9V12ZM9 10C9 10.552 8.552 11 8 11C7.448 11 7 10.552 7 10C7 9.448 7.448 9 8 9C8.552 9 9 9.448 9 10Z"
      />
    </svg>
  );
}
With react-icons
import { VscLockSmall } from "react-icons/vsc";

export function Example() {
  return <VscLockSmall className="size-5" />;
}
lock-small.svg
<svg
  viewBox="0 0 16 16"
  stroke="currentColor"
  fill="currentColor"
  stroke-width="0"
  width="1em"
  height="1em"
  xmlns="http://www.w3.org/2000/svg"
>
  <path
    d="M11 7V5C11 3.346 9.654 2 8 2C6.346 2 5 3.346 5 5V7C3.897 7 3 7.897 3 9V12C3 13.103 3.897 14 5 14H11C12.103 14 13 13.103 13 12V9C13 7.897 12.103 7 11 7ZM6 5C6 3.897 6.897 3 8 3C9.103 3 10 3.897 10 5V7H6V5ZM12 12C12 12.551 11.551 13 11 13H5C4.449 13 4 12.551 4 12V9C4 8.449 4.449 8 5 8H11C11.551 8 12 8.449 12 9V12ZM9 10C9 10.552 8.552 11 8 11C7.448 11 7 10.552 7 10C7 9.448 7.448 9 8 9C8.552 9 9 9.448 9 10Z"
  />
</svg>
Attribution
"Lock Small" icon from VS Code Icons (https://github.com/microsoft/vscode-codicons), licensed under CC BY 4.0 license.

Related icons: secure, security, password, padlock