Frastra Logo

Input

Displays a form input field or a component that looks like an input field.

Default

<input
type="text"
placeholder="Email"
className="w-full max-w-xs px-3 py-2 rounded-md bg-neutral-800 border border-white/10 text-sm text-white placeholder-neutral-400 focus:outline-none hover:border-white/20 focus:border-white/30 transition-all duration-150"
/>

Error State

<input
type="text"
placeholder="email@example.com"
defaultValue="wrong@email"
className="w-full max-w-xs px-3 py-2 rounded-md bg-neutral-800 border border-red-500 text-sm text-white placeholder-gray-500 focus:outline-none"
/>
© 2025 Frastra UI. Released under the MIT License.
Designed and developed by emirkrhan