Hover the icon or press Play. Suggested motion: shake. Pick another to preview it and update the animated code:
Key icon
A free key icon from Heroicons 2, 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
- github.com
npx shadcn@latest add https://ui.cuelark.com/r/icons/heroicons-2/key.jsonimport * as React from "react";
/**
* Key from Heroicons 2 (https://github.com/tailwindlabs/heroicons), MIT.
* Via Cuelark UI: ui.cuelark.com/icons/heroicons-2/key. Sized in em, colored by currentColor.
*/
export function HiKeyIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
aria-hidden="true"
viewBox="0 0 24 24"
aria-hidden="true"
stroke="currentColor"
fill="currentColor"
strokeWidth="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
d="M15.75 1.5a6.75 6.75 0 0 0-6.651 7.906c.067.39-.032.717-.221.906l-6.5 6.499a3 3 0 0 0-.878 2.121v2.818c0 .414.336.75.75.75H6a.75.75 0 0 0 .75-.75v-1.5h1.5A.75.75 0 0 0 9 19.5V18h1.5a.75.75 0 0 0 .53-.22l2.658-2.658c.19-.189.517-.288.906-.22A6.75 6.75 0 1 0 15.75 1.5Zm0 3a.75.75 0 0 0 0 1.5A2.25 2.25 0 0 1 18 8.25a.75.75 0 0 0 1.5 0 3.75 3.75 0 0 0-3.75-3.75Z"
clipRule="evenodd"
/>
</svg>
);
}import { HiKey } from "react-icons/hi2";
export function Example() {
return <HiKey className="size-5" />;
}<svg
viewBox="0 0 24 24"
aria-hidden="true"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M15.75 1.5a6.75 6.75 0 0 0-6.651 7.906c.067.39-.032.717-.221.906l-6.5 6.499a3 3 0 0 0-.878 2.121v2.818c0 .414.336.75.75.75H6a.75.75 0 0 0 .75-.75v-1.5h1.5A.75.75 0 0 0 9 19.5V18h1.5a.75.75 0 0 0 .53-.22l2.658-2.658c.19-.189.517-.288.906-.22A6.75 6.75 0 1 0 15.75 1.5Zm0 3a.75.75 0 0 0 0 1.5A2.25 2.25 0 0 1 18 8.25a.75.75 0 0 0 1.5 0 3.75 3.75 0 0 0-3.75-3.75Z"
clip-rule="evenodd"
/>
</svg>"Key" icon from Heroicons 2 (https://github.com/tailwindlabs/heroicons), licensed under MIT license.Related icons: password, access, auth, login
Key icon in other sets
- Key · Font Awesome 5
- Key · Font Awesome 6
- Key · Ionicons 5
- Key · Material Design icons
- Key · Typicons
- Key · Github Octicons icons
- Key · Feather
- Key · Lucide
- Key · Game Icons
- Key · Bootstrap Icons
- Key · Flat Color Icons
- Key · Grommet-Icons
- Key · Heroicons
- Key · Simple Line Icons
- Key · IcoMoon Free
- Key · BoxIcons
- Key · css.gg
- Key · VS Code Icons