About
A GTK-styled text input field with an optional label, leading/trailing icon, size variants, and an inline validation error message.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Wtk Input to your project and fits it to your theme.
Code
How Wtk Input is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import WtkInput from "@/components/ui/wtk-input";
export default function WtkInputLabelDemo() {
return (
<div className="flex flex-wrap items-start gap-3">
<WtkInput
label="Name"
placeholder="Enter a name"
wrapperClassName="max-w-[220px]"
/>
<WtkInput
label="Port"
defaultValue="8080"
wrapperClassName="max-w-[220px]"
/>
</div>
);
}










