Skip to content
Cuelark UI

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

Feather · FiKey

Key icon

A free key icon from Feather, 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
MIT license
Project
feathericons.com
Install with shadcn
npx shadcn@latest add https://ui.cuelark.com/r/icons/feather/key.json
components/icons/feather-key.tsx
import * as React from "react";

/**
 * Key from Feather (https://feathericons.com/), MIT.
 * Via Cuelark UI: ui.cuelark.com/icons/feather/key. Sized in em, colored by currentColor.
 */
export function FiKeyIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      aria-hidden="true"
      fill="none"
      strokeWidth="2"
      viewBox="0 0 24 24"
      strokeLinecap="round"
      strokeLinejoin="round"
      stroke="currentColor"
      fill="currentColor"
      width="1em"
      height="1em"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"
      />
    </svg>
  );
}
With react-icons
import { FiKey } from "react-icons/fi";

export function Example() {
  return <FiKey className="size-5" />;
}
key.svg
<svg
  fill="none"
  stroke-width="2"
  viewBox="0 0 24 24"
  stroke-linecap="round"
  stroke-linejoin="round"
  stroke="currentColor"
  fill="currentColor"
  width="1em"
  height="1em"
  xmlns="http://www.w3.org/2000/svg"
>
  <path
    d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"
  />
</svg>
Attribution
"Key" icon from Feather (https://feathericons.com/), licensed under MIT license.

Related icons: password, access, auth, login

Key icon in other sets