key icon
key from TDesign Icons by TDesign · Outline · MIT Free for personal and commercial use.
- Name
- key
- Set
- TDesign Icons
- Style
- Outline
- Viewbox
- 24×24
- License
- MIT
1 other variant in TDesign Icons
The same icon in other sets
keyAkar Iconskey-outlinedAnt Design IconskeyBootstrap IconskeyBoxIcons v2keyBoxIcons v2 SolidkeyCarbonkeyCatppuccin IconskeyCodiconskeyEmoji One (Colored)keyElement PluskeyFont Awesome 6 SolidkeyFont Awesome SolidkeyFeather Iconskey-16-filledFluent UI System IconskeyFluent EmojikeyFluent Emoji FlatkeyFluent Emoji High ContrastkeyFirefox OS Emojikeycss.ggkeyHeroIconskeyHumbleiconskeyIconParkkeyIconPark OutlinekeyIconPark Solid
Use the key icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none"><path d="M11.536 15.536a5 5 0 1 1-7.072-7.071a5 5 0 0 1 7.072 7.07"/><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M14 12h7m-4.5 2.999V12m3 2v-2m-7.964 3.536a5 5 0 1 1-7.072-7.071a5 5 0 0 1 7.072 7.07Z"/></g></svg>
React
import type { SVGProps } from "react";
export function TdesignKey(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none"><path d="M11.536 15.536a5 5 0 1 1-7.072-7.071a5 5 0 0 1 7.072 7.07"/><path stroke="currentColor" strokeLinecap="square" strokeWidth="2" d="M14 12h7m-4.5 2.999V12m3 2v-2m-7.964 3.536a5 5 0 1 1-7.072-7.071a5 5 0 0 1 7.072 7.07Z"/></g></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none"><path d="M11.536 15.536a5 5 0 1 1-7.072-7.071a5 5 0 0 1 7.072 7.07"/><path stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M14 12h7m-4.5 2.999V12m3 2v-2m-7.964 3.536a5 5 0 1 1-7.072-7.071a5 5 0 0 1 7.072 7.07Z"/></g></svg> </template>
CSS
.icon-key {
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M11.536%2015.536a5%205%200%201%201-7.072-7.071a5%205%200%200%201%207.072%207.07%22%2F%3E%3Cpath%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22square%22%20stroke-width%3D%222%22%20d%3D%22M14%2012h7m-4.5%202.999V12m3%202v-2m-7.964%203.536a5%205%200%201%201-7.072-7.071a5%205%200%200%201%207.072%207.07Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M11.536%2015.536a5%205%200%201%201-7.072-7.071a5%205%200%200%201%207.072%207.07%22%2F%3E%3Cpath%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22square%22%20stroke-width%3D%222%22%20d%3D%22M14%2012h7m-4.5%202.999V12m3%202v-2m-7.964%203.536a5%205%200%201%201-7.072-7.071a5%205%200%200%201%207.072%207.07Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/tdesign/key.svg?color=%231a73e8&size=48