About
A select dropdown bound to React Hook Form with a Zod resolver that validates on submit and shows an inline field error until a department is chosen.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds React Hook Form Select to your project and fits it to your theme.
Code
How React Hook Form Select is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Select12 } from "@/components/ui/select-12";
export default function Default() {
return (
<div className="flex min-h-[420px] w-full items-center justify-center p-6">
<Select12 />
</div>
);
}
















![Form [react-aria-components]](https://cdn.21st.dev/cdn-cgi/image/fit=scale-down,width=640,quality=75,format=webp/https://cdn.21st.dev/user_jolbol1/field/814/preview.png)