232
A glass shield that fills with liquid as it checks a passkey – the padlock flips colour as the tide rises past it and snaps shut, while a bad key turns the water red and drains it away.
akasecurity·lock·padlock
Run this in any project set up for the shadcn CLI. It copies the Shield Lock source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/shield-lock.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { ShieldLock } from "@/components/shield-lock";
export default function Page() {
return <ShieldLock />;
}A free React illustration in the Objects collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Shield Lock source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| status | ShieldLockStatus | — |
| onRequest | (next: "locked" | "open") => void | — |
| hue | ShieldLockHue | "sky" |
| labels | Partial<Record<ShieldLockStatus, string>> | — |
| className | string | — |