Skip to content
shadcn.io

Lock

The lock icon represents security, protection, or privacy, typically featuring a stylized lock mechanism.

Add shadcn.io to your AI agent. · Pro It installs Lock, or any of 294k icons, from a prompt, with Pro.

Set up MCP

Exports at 24 × 24 px

Lock icon from coolicons
Get Pro

715 in cooliconsCC BY 4.0 license (opens in a new tab)Free to copy and download

Code

Lock in your framework

In any framework. Customize it above, and the code follows.

export const LockIcon = (props: React.SVGProps<SVGSVGElement>) => (
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" {...props}>
    <path fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M9.23 9H7.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C4 10.52 4 11.08 4 12.2v5.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874c.427.218.987.218 2.105.218h9.606c1.118 0 1.677 0 2.104-.218c.377-.192.683-.498.875-.874c.218-.428.218-.986.218-2.104v-5.607c0-1.118 0-1.678-.218-2.105a2 2 0 0 0-.875-.874C18.48 9 17.92 9 16.8 9h-2.03M9.23 9h5.539M9.23 9A.23.23 0 0 1 9 8.77V6a3 3 0 1 1 6 0v2.77a.23.23 0 0 1-.231.23"/>
  </svg>
);

Other libraries

Lock in 8 more libraries

Each library draws it its own way. Open one to compare.

  • Lock icon from Material Symbols
  • Lock icon from Material Symbols Light
  • Lock icon from Arcticons
  • Lock icon from Phosphor
  • Lock icon from Material Design Icons
  • Lock icon from Tabler Icons
  • Lock icon from Huge Icons
  • Lock icon from IconPark Outline

coolicons

Icons that share its tags, then the ones next to it in coolicons, in the same style.

  • Shield Check icon from coolicons
  • Lock Open icon from coolicons
  • Shield icon from coolicons
  • Shield Warning icon from coolicons
  • Id Card icon from coolicons
  • List Checklist icon from coolicons
  • List Checklist Alt icon from coolicons
  • List Minus icon from coolicons
  • List Ol icon from coolicons
  • List Ordered icon from coolicons
  • List Plus icon from coolicons
  • List Remove icon from coolicons
  • List Ul icon from coolicons
  • List Unordered icon from coolicons
  • Loading icon from coolicons
  • Location icon from coolicons
  • Location Outline icon from coolicons
  • Log Out icon from coolicons
  • Long Bottom Down icon from coolicons
  • Long Bottom Up icon from coolicons
  • Long Down icon from coolicons
  • Long Left icon from coolicons
  • Long Right icon from coolicons
  • Long Up icon from coolicons

Skip the copy and paste. With Pro, your AI agent finds and installs any coolicons icon from a prompt.

Get Pro

Tags

Browse by tag

Lock is tagged security, safety, protection and 1 more. Related tags follow; each opens its icons from every library.

Pricing

coolicons MCP, with Pro

Ask for Lock or any of 715 coolicons icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

Billed once a year in USD. Cancel anytime.

Individual

For personal projects & open source

$32instead of $49/mo

$389 billed yearly

  • How many people can use the license.Seats: 1 seat
  • Client work, SaaS products and anything you charge for.Commercial use: Personal & open source only
  • Production-ready React sections: hero, pricing, features, dashboards and more.Pro blocks: 6,000+ blocks
  • Complete multi-page sites you can ship as they are.Templates: All 14 templates
  • React icons from every major library, installable with one command.React icons: 294k+ icons
  • Presets that restyle every block, in light and dark.Themes: All 59 themes
  • Lets your AI editor search, preview and install blocks for you.MCP server: Basic usage
  • Priority requests are answered first.Support: Standard

Team

Most popular

For freelancers, agencies & startups

$66instead of $99/mo

$789 billed yearly · ≈ $13/dev/mo

Everything in Individual, plus

  • How many people can use the license.Seats: Up to 5 seats
  • Client work, SaaS products and anything you charge for.Commercial use: Included
  • Lets your AI editor search, preview and install blocks for you.MCP server: High usage
  • Priority requests are answered first.Support: Priority

Organization

For companies with larger teams

$132instead of $199/mo

$1,589 billed yearly

Everything in Team, plus

  • How many people can use the license.Seats: Unlimited seats
  • Lets your AI editor search, preview and install blocks for you.MCP server: Unlimited usage
  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What the Lock icon means and where it's used, then how to install, style and license it.

Install Lock from a prompt

MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.

Get Pro