input
neobrutalui/inputFreeComponent
Collect single-line text input from users.
Live preview
live · rendered by the registry
Rendered by neobrutalui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.neobrutalui.live/r/input.jsonSource
1import * as React from "react"2import { cn } from "@/lib/utils"34export type InputProps = React.InputHTMLAttributes<HTMLInputElement>56const Input = React.forwardRef<HTMLInputElement, InputProps>(7 ({ className, type = "text", ...props }, ref) => {8 return (9 <input10 type={type}11 className={cn(12 "flex h-10 w-full rounded-base border-2 border-black bg-white px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-black/60 focus-brutal disabled:cursor-not-allowed disabled:opacity-50",13 className14 )}15 ref={ref}16 {...props}17 />18 )19 }20)21Input.displayName = "Input"2223export { Input }
What it pulls in
Other registry items
More from neobrutalui
All 24 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | neobrutalui | Components | Free | 2 deps | |
| alertalert | neobrutalui | Components | Free | 1 dep | |
| avataravatar | neobrutalui | Components | Free | no deps | |
| badgebadge | neobrutalui | Components | Free | 1 dep | |
| buttonbutton | neobrutalui | Components | Free | 1 dep | |
| cardcard | neobrutalui | Components | Free | no deps | |
| checkboxcheckbox | neobrutalui | Components | Free | 2 deps | |
| date-pickerdate-picker | neobrutalui | Components | Free | 2 deps |
