Input
glasswave/inputFreeComponent
Text input field.
Live preview
live · rendered by the registry
Rendered by glasswave on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://glasswave.denizisik.com/r/input.jsonSource
1import { forwardRef, type InputHTMLAttributes } from "react";2import { cn } from "@/lib/utils";3import { focusRing, glass } from "@/lib/glass";45interface InputProps extends InputHTMLAttributes<HTMLInputElement> {}67export const Input = forwardRef<HTMLInputElement, InputProps>(8 ({ className = "", ...props }, ref) => {9 const baseClasses = cn(10 glass,11 focusRing,12 // Gentler 12px radius (not the 32px surface radius), compact height,13 // and lighter text — fields should read as fields, not big pills.14 "h-10 w-full rounded-xl px-3.5 text-sm font-normal placeholder:text-current/40",15 "file:mr-3 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-current",16 "disabled:cursor-not-allowed disabled:opacity-50",17 );1819 return (20 <input ref={ref} className={cn(baseClasses, className)} {...props} />21 );22 },23);2425Input.displayName = "Input";
What it pulls in
Other registry items
Files it writes
More from glasswave
All 60 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | glasswave | Components | Free | 2 deps | |
| Alertalert | glasswave | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | glasswave | Components | Free | 1 dep | |
| Aspect Ratioaspect-ratio | glasswave | Components | Free | 1 dep | |
| Avataravatar | glasswave | Components | Free | 1 dep | |
| Badgebadge | glasswave | Components | Free | 1 dep | |
| Breadcrumbbreadcrumb | glasswave | Components | Free | 2 deps | |
| Buttonbutton | glasswave | Components | Free | 2 deps |
