Hover the icon or press Play. Suggested motion: shake. Pick another to preview it and update the animated code:
Lock icon
A free lock icon from Flat Color 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
- MIT license
- Project
- github.com
npx shadcn@latest add https://ui.cuelark.com/r/icons/flat-color/lock.jsonimport * as React from "react";
/**
* Lock from Flat Color Icons (https://github.com/icons8/flat-color-icons), MIT.
* Via Cuelark UI: ui.cuelark.com/icons/flat-color/lock. Sized in em, colored by currentColor.
*/
export function FcLockIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
aria-hidden="true"
version="1"
viewBox="0 0 48 48"
enableBackground="new 0 0 48 48"
stroke="currentColor"
fill="currentColor"
strokeWidth="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fill="#424242"
d="M24,4c-5.5,0-10,4.5-10,10v4h4v-4c0-3.3,2.7-6,6-6s6,2.7,6,6v4h4v-4C34,8.5,29.5,4,24,4z"
/>
<path
fill="#FB8C00"
d="M36,44H12c-2.2,0-4-1.8-4-4V22c0-2.2,1.8-4,4-4h24c2.2,0,4,1.8,4,4v18C40,42.2,38.2,44,36,44z"
/>
<circle fill="#C76E00" cx="24" cy="31" r="3" />
</svg>
);
}import { FcLock } from "react-icons/fc";
export function Example() {
return <FcLock className="size-5" />;
}<svg
version="1"
viewBox="0 0 48 48"
enable-background="new 0 0 48 48"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill="#424242"
d="M24,4c-5.5,0-10,4.5-10,10v4h4v-4c0-3.3,2.7-6,6-6s6,2.7,6,6v4h4v-4C34,8.5,29.5,4,24,4z"
/>
<path
fill="#FB8C00"
d="M36,44H12c-2.2,0-4-1.8-4-4V22c0-2.2,1.8-4,4-4h24c2.2,0,4,1.8,4,4v18C40,42.2,38.2,44,36,44z"
/>
<circle fill="#C76E00" cx="24" cy="31" r="3" />
</svg>"Lock" icon from Flat Color Icons (https://github.com/icons8/flat-color-icons), licensed under MIT license.Related icons: secure, security, password, padlock
Lock icon in other sets
- Lock · Circum Icons
- Lock · Font Awesome 5
- Lock · Font Awesome 6
- Lock · Material Design icons
- Lock · Github Octicons icons
- Lock · Feather
- Lock · Lucide
- Lock · Bootstrap Icons
- Lock · Grommet-Icons
- Lock · Simple Line Icons
- Lock · IcoMoon Free
- Lock · BoxIcons
- Lock · css.gg
- Lock · VS Code Icons
- Lock · Tabler Icons
- Lock · Themify Icons
- Lock · Phosphor Icons