Label
Locked Reason
A label for a locked field with the reason and a way out: the input is readonly rather than disabled, so it stays reachable from the keyboard.
What you can change
- the field name through label, the explanation through reason, the link caption through actionText and its address through actionHref
- the focus and link color through accent
- background — the component surface; empty means no surface, taking the page colour
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/label-008?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, a palette in local variables --vibeui-label-008-*. It is a server component: useId is the only hook, there is no state. The key decision is readOnly plus aria-disabled instead of a real disabled: disabled throws the field out of the tab order and a keyboard user never reaches the reason, while readonly keeps focus and lets the text tied through aria-describedby be read. The padlock is drawn by CSS means: the body is the element's background, the shackle is the border of a pseudo-element, and an icon package is not needed for a single glyph. Next to the reason there is a link that lifts the restriction — without it the interface turns into a dead end. The palette is built on light-dark(): the block follows the surrounding color-scheme, there is no surface by default, and it appears only through the background prop.
Tags
- label
- disabled
- readonly
- a11y
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…