VanillaReactLight & dark339 views
A bare token-driven text input with a floating "Agent Name" label that rests inside the field and rises above it on focus or when filled, a design-system focus border, and readable accent label text in light and dark.
Get the code for free
Create a free account to copy or download the full source.
Input component
A bare token-driven text input with a floating "Agent Name" label that rests inside the field and rises above it on focus or when filled, a design-system focus border, and readable accent label text in light and dark.
placeholder-shown trick — it works even before JavaScript loadspadding-box/border-box techniqueffd-inp--filled wrapper class for styling robustnessprefers-reduced-motion<label for="agent-name"> bound to the text input:placeholder-shown, so state is conveyed without JSrole="switch" with aria-checked toggled by JS, Enter/Space activation:focus-visible outline with the --ring tokenprefers-reduced-motion: reduce disables all animationsOpen Floating Field in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the input is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.
300+ production-ready components and Atheros AI models. Every paid plan includes access to the whole Atheros — AI Builder and Learning.
Starting at $9.9 per month, billed annually