Buttons
Minimal Link Button
The lightest action in the set: text with an arrow, the underline drawing itself in from the left on hover. Self-contained — one file, no dependencies.
- button
- link
- minimal
- inline
- text
Preview
1440pxHost theme
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.
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
# Install and place "button-011" (Minimal Link Button) from VibeUI
## 1. Install first — do not skip, do not recreate
Install command is unavailable: the VibeUI registry URL is not configured.
Installs to: components/vibeui/button-011.tsx (the exact path follows this project's components.json aliases).
npm dependencies: none.
Registry dependencies: none.
Install it from the registry. Do not recreate it from the description,
do not substitute a similar component from another library, and do not
rewrite it to match the project's existing style.
## 2. What it is
The lightest action in the set: text with an arrow, the underline drawing itself in from the left on hover. Self-contained — one file, no dependencies.
A text action with no background, no border and no fixed height — it sits straight in a line of copy. At rest there is no underline: a thin line draws itself left to right on hover and focus, the colour shifts to the accent, and the arrow slides forward. The lightest element in the set.
## 3. How to use it
import { Button011 } from "@/components/vibeui/button-011"
<Button011 onClick={openFeatures}>See all features</Button011>
Read the installed file for the full prop list.
## 4. Where to place it
This is a small inline component. Put it exactly where the user asked,
inside the existing markup. Do not create a new page, section or
wrapper for it. If a similar control already sits in that spot,
replace it instead of adding a second one.
Placement: ___
(The user fills this line in. If it is still blank, ask where to put it
instead of guessing.)
## 5. Keep exactly as installed
- the absence of a background, a border and a fixed height — the component has to sit inside a line of text
- the underline drawn with scaleX from a left transform-origin rather than a permanent line
- the underline appearing on focus-visible as well, not only on hover
- the arrow sliding forward
- the zero padding: any spacing is set from outside through className
## 6. You may change
- the label
- whether the arrow shows, through the arrow prop
- the accent colour through the accent prop
- the onClick handler
- outer spacing through className
## 7. Rules
- Do not swap <button> for <a>. For navigation use a plain link or your router's component, not this button.
- Do not give it a background or a border: it stops being distinguishable from the rest of the set.
- Do not lift the CSS variables into globals.css: the component has to stay a single file.
## 8. Verify
- it renders with no console errors;
- it looks like the preview on the VibeUI page you copied this from;
- if it does not, you changed something listed in section 5 — put it back.For developers
The install command is unavailable: the environment variableREGISTRY_BASE_URL
Компонент самодостаточен: один файл, без зависимостей, собственная палитра в локальных переменных --vibeui-button-011-*. Это button, а не ссылка: у неё нет фона, рамки и фиксированной высоты, поэтому она встаёт прямо в строку текста. Для перехода по адресу используйте обычный <a>.
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
import type { ComponentPropsWithoutRef, CSSProperties } from "react"
export type Button011Props = ComponentPropsWithoutRef<"button"> & {
arrow?: boolean
accent?: string
}
// Идея компонента: самое лёгкое действие в наборе — текст со стрелкой.
// Подчёркивание не нарисовано постоянно: оно прочерчивается слева направо
// на наведении и фокусе, стрелка в это время уезжает вперёд. Ни фона,
// ни рамки, ни высоты — кнопка живёт внутри строки текста.
const STYLES = `
:where([data-vibeui-block="button-011"]){
--vibeui-button-011-fg:oklch(0.35 0.015 265);
--vibeui-button-011-accent:oklch(0.55 0.16 258);
--vibeui-button-011-ring:color-mix(in oklab, var(--vibeui-button-011-accent) 65%, transparent);
--vibeui-button-011-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
[data-vibeui-block="button-011"]{
position:relative;appearance:none;border:0;background:transparent;padding:0;cursor:pointer;
display:inline-flex;align-items:center;gap:0.375rem;
font-family:var(--vibeui-button-011-font);font-size:0.9375rem;font-weight:500;line-height:1.4;
color:var(--vibeui-button-011-fg);
transition:color .18s ease;
}
[data-vibeui-block="button-011"]::after{
content:"";position:absolute;left:0;right:0;bottom:-2px;height:1px;
background:currentColor;transform:scaleX(0);transform-origin:left center;
transition:transform .28s cubic-bezier(0.16,1,0.3,1);
}
[data-vibeui-block="button-011"]:hover:not(:disabled),[data-vibeui-block="button-011"]:focus-visible{color:var(--vibeui-button-011-accent)}
[data-vibeui-block="button-011"]:hover:not(:disabled)::after,[data-vibeui-block="button-011"]:focus-visible::after{transform:scaleX(1)}
[data-vibeui-block="button-011"]:focus-visible{outline:2px solid var(--vibeui-button-011-ring);outline-offset:3px;border-radius:2px}
[data-vibeui-block="button-011"]:disabled{cursor:not-allowed;opacity:.5}
[data-vibeui-block="button-011"] svg{width:0.75rem;height:0.75rem;flex:none;transition:transform .28s cubic-bezier(0.16,1,0.3,1)}
[data-vibeui-block="button-011"]:hover:not(:disabled) svg{transform:translateX(3px)}
@media (prefers-reduced-motion:reduce){[data-vibeui-block="button-011"],[data-vibeui-block="button-011"]::after,[data-vibeui-block="button-011"] svg{transition:none!important}}
`
/**
* Минимальное текстовое действие: подчёркивание прочерчивается на наведении.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Button011({
arrow = true,
accent,
type = "button",
className,
style,
children = "Смотреть все возможности",
...props
}: Button011Props) {
const palette = {
...(accent ? { "--vibeui-button-011-accent": accent } : null),
...style,
} as CSSProperties
return (
<>
<style href="vibeui-button-011" precedence="medium">
{STYLES}
</style>
<button
{...props}
type={type}
data-vibeui-block="button-011"
className={className}
style={palette}
>
{children}
{arrow ? (
<svg viewBox="0 0 12 10" fill="none" aria-hidden="true">
<path
d="M1 5h9M6.5 1.5 10 5l-3.5 3.5"
stroke="currentColor"
strokeWidth="1.6"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
) : null}
</button>
</>
)
}