Button
Reveal Password Button
A reveal-password button inside the field: it flips only the type, so the entered text and the caret position stay put.
What you can change
- the field label through the label prop
- the hint text through the placeholder prop
- the initial value through the defaultValue prop
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/button-058?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-button-058-* variables. Client component: the reveal state is internal. The field is always the same one — only the type attribute changes, so React does not recreate the node and the caret is not reset. The state is declared through aria-pressed, and the button's name changes with it. The focus ring is drawn by the field wrapper through :has(input:focus-visible). The stroke across the eye is a separate node with a shadow in the surface colour, which gives the cut-out.
Tags
- input
- password
- toggle
- form
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…