Glass Input
washiveil/glass-inputFreeComponent
Text input on a translucent glass surface with a ruri focus ring.
Install it
npx shadcn@latest add https://washiveil.alexchih.com/r/glass-input.jsonSource
1import * as React from 'react'23import { cn } from '@/lib/utils'45const GlassInput = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(6 ({ className, type, ...props }, ref) => {7 return (8 <input9 type={type}10 className={cn(11 'flex h-10 w-full rounded-xl border border-border bg-glass px-3.5 py-2.5 text-sm text-foreground backdrop-blur-md placeholder:text-muted-foreground transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive',12 className,13 )}14 ref={ref}15 {...props}16 />17 )18 },19)20GlassInput.displayName = 'GlassInput'2122export { GlassInput }
What it pulls in
Other registry items
Files it writes
More from washiveil
All 58 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Ambient Fieldambient-field | washiveil | Components | Free | no deps | |
| Chipchip | washiveil | Components | Free | 1 dep | |
| Code Badgecode-badge | washiveil | Components | Free | no deps | |
| Glass Accordionglass-accordion | washiveil | Components | Free | 2 deps | |
| Glass Alertglass-alert | washiveil | Components | Free | 1 dep | |
| Glass Alert Dialogglass-alert-dialog | washiveil | Components | Free | 1 dep | |
| Glass Aspect Ratioglass-aspect-ratio | washiveil | Components | Free | 1 dep | |
| Glass Avatarglass-avatar | washiveil | Components | Free | 1 dep |
