Skip to main content

Svelte · Text fields · Updated November 2026

5 best animated Svelte text field components

Need a Svelte text field component with real motion? These five animated text fields play in Svelte from one .exode file, chosen from the 32 in Exode Galleries. Each one is live below: try it, then open it in ExodeUI and drop it into your Svelte app with the code at the end.

  1. 1Harmonic Spring Shake
  2. 2Split-Flap Display
  3. 3Cursor-Tracking Glow
  4. 4Liquid Gradient Fill
  5. 5Cipher Decrypt
1

Harmonic Spring Shake Svelte text field

Physics & Validation

An invalid submit shakes the field with a decaying spring (stiffness 450, damping 12). Our first pick: a physics & validation text field with 12 inputs your Svelte code can drive, in a 912-byte file.

3

Cursor-Tracking Glow Svelte text field

Reactive Border & Light

A luminous edge glow follows the cursor around the field perimeter, Linear/Stripe style. It is a reactive border & light text field with 9 inputs your Svelte code can drive, in a 818-byte file.

5

Cipher Decrypt Svelte text field

Micro-Metrics & Passwords

Each character shows random symbols for 150ms before settling into the typed letter. It is a micro-metrics & passwords text field with 9 inputs your Svelte code can drive, in a 803-byte file.

What makes a good Svelte text field

  • Real typing, not a fake caret.
  • Focus, error and valid states your validation can drive.
  • A label that stays readable when the field is filled.
  • Error motion that is clear but short.

Use it as a checklist when you compare the picks above. Each one is a native text field in ExodeUI, so whatever is missing you change in the editor instead of rewriting Svelte code.

Side by side

#DesignCategoryInputsFile
1Harmonic Spring ShakePhysics & Validation12912 B
2Split-Flap DisplaySegmented & Stepped8757 B
3Cursor-Tracking GlowReactive Border & Light9818 B
4Liquid Gradient FillReactive Border & Light8765 B
5Cipher DecryptMicro-Metrics & Passwords9803 B

Use it in Svelte

The code for #1, Harmonic Spring Shake, with its real file and input names. Every pick works the same way.

npm install exodeui-svelte
<script>
  import { ExodeUICanvas, createExodeUI } from 'exodeui-svelte';
  import artboard from './spring-shake.exode?raw';

  const exo = createExodeUI();
  function onReady(engine) {
    exo.setEngine(engine);
    exo.setInputText("Harmonic Spring Shake · Value", "Hello");
  }
</script>

<ExodeUICanvas artboard={JSON.parse(artboard)} fit="Contain" onready={onReady} />
<button onclick={() => exo.fireTrigger("Harmonic Spring Shake · Submitted")}>Submitted</button>

Questions

How do I make a custom animated text field in Svelte?

Pick a design here, open it in ExodeUI and change it, then export a .bexode file. Install exodeui-svelte (npm install exodeui-svelte) and load the file with the runtime; the code below uses the first pick’s real file and input names. The motion, states and springs live in the file, so your Svelte code only sets and reads inputs.

What is the best Svelte text field component?

It depends on the job: Harmonic Spring Shake (physics & validation), Split-Flap Display (segmented & stepped), Cursor-Tracking Glow (reactive border & light) cover different styles. These five are our picks from the 32 text fields in Exode Galleries, chosen for range, for how much is wired to inputs and for how well they read small. They are not a survey of other libraries.

Can I use these text fields with Svelte’s built-in text field?

They replace it where you want custom motion. Keep the built-in one where the platform default is right, and use an ExodeUI file where the text field is part of your brand.

Are they free?

Yes. They come from Input Box Studio, built into the ExodeUI editor and included in the free Community plan. The Svelte runtime is free too.

Can I change them?

Yes. Open one in ExodeUI and every part is a native layer: colours, type, motion and logic. The input names stay the same, so your code keeps working.

Related searches

Make your own in ExodeUI

Free to start. Every studio behind this library is built into the editor, and everything it makes stays native and editable.

Try ExodeUI for free
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →