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.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/lock-input

API Reference

PropTypeDefaultDescription
labelstringundefinedVisible label rendered above the input
descriptionstringundefinedHelper text below the input
errorstringundefinedError message; presence triggers danger styling
leftIconReact.ReactNodeundefinedIcon element placed before the input value
rightIconReact.ReactNodeundefinedIcon element placed after the input value
disabledbooleanfalsePrevents interaction and applies 30% disabled opacity