Search
Search for a page

Input

A highly custom text input component featuring native-feeling iOS clear-text triggers, focus ring shadows, and specular boundary glares.

bunx shadcn-svelte@latest add https://ui.grgurevic.click/r/input.json

Basic Input

A simple text input with custom placeholder.

Interactive Features

Clearable actions and disabled fields.

Clearable Field
Disabled Field

Best practices

The best practices when using input fields.

  • Keep placeholders concise and contextually relevant.
  • For search fields or inputs that need an icon or action button, wrap them in an logoInput Group instead of using a plain Input.
  • Associate labels with inputs to ensure screen readers can read them properly.
  • Disable input fields during submission states to prevent duplicate payloads.

Props

The props available for the Input component.

PropTypeDefaultDescription
valuestring | number""Two-way bindable active value representing the textual input.
clearButtonbooleanfalseAppends a dynamic trailing clear button matching native iOS input behavior.
specularbooleantrueProjects dynamic light border reflection overlay on mouse hover events.
magneticbooleantrueSlightly attracts field container towards cursor position during drag motions.
ripplebooleantrueEnables high-fidelity ambient click ripples.
liquidGlassbooleanfalseEnables physical liquid glass refraction (Chromium only).
refractiveIndexnumber1.5IOR of glass curvature. Range 1.0 (air) to 2.4.
bezelWidthnumber20Depth of bezel refraction zone (px).
displacementScalenumber30Intensity of physical refraction offset.
surfaceProfile"circle" | "squircle" | "concave" | "lip""squircle"3D bezel curvature outline profile.
Previous Glass View
Give feedback
Next Input Group