---
title: "LockInput | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/lock-input"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/lock-input.tsx"
install_command: "npx motion-ui-skill add lock-input"
dependencies: ["clsx","motion","react","tailwind-merge"]
category: "craft"
subcategory: "craft"
---

# LockInput

> A text input whose focus state subtly "locks" into place — a focus ring scales in from the center and the border tweens to active, giving the impression that the input snaps closed on itself.

## Install

```bash
npx motion-ui-skill add lock-input
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { LockInput as LockInput } from "@/components/craft/lock-input";

export function Example() {
  return (
    <div className="p-6">
      <LockInput />
    </div>
  );
}
```

## Source Files

- [components/craft/lock-input.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/lock-input.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
- [lib/motion-tokens.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/motion-tokens.ts)
