Input

Input

A highly custom text input component featuring native-feeling iOS clear-text triggers, smooth focus ring shadows, specular glares, and elastic click ripple wiggles.

Preview
Value: ""
Configuration
Automatic Clear Button Appends trailing 'X' when text is present
Specular Boundary Glare Simulates metallic screen boundary lights
Elastic Cursor Magnet Slightly attracts field layout to cursor
Pointer Press Ripple Spawns light waves on surface click actions
Installation
npx shadcn-svelte@latest add https://ui.grgurevic.click/r/input.json
Svelte Composition Code
<script lang="ts">
	let value = $state("");
	import { Input } from "$lib/components/ui/input";
</script>

<Input placeholder="Enter username..." bind:value={value} />

API & Props Reference

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.