Buttons
Social Proof Button
A CTA carrying its own social proof: a stack of initial avatars and a quiet counter beside the label. Self-contained — one file, no dependencies.
- button
- cta
- social-proof
- avatars
- signup
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-007" (Social Proof 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-007.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
A CTA carrying its own social proof: a stack of initial avatars and a quiet counter beside the label. Self-contained — one file, no dependencies.
A dark pill button with social proof built in. On the left sits a stack of overlapping round avatars drawn from initials, then the label, then a quiet counter line. On hover the stack opens up and the avatars spread apart. The avatars are pure CSS — no images, no requests.
## 3. How to use it
import { Button007 } from "@/components/vibeui/button-007"
<Button007 people={["AK", "MD", "LP"]} hint="+2,400 teams" onClick={signUp}>
Join them
</Button007>
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 CSS avatars built from initials — do not swap them for <img>, that adds requests and breaks the component's self-sufficiency
- the overlap via negative margin and the ring in the button's own background colour: without it the stack merges into a blob
- the way the stack spreads on hover
- the different tints on the first three avatars: identical ones read as a single block
- the counter line at a smaller size and a muted colour — it must not compete with the label
- aria-hidden on the stack: to a screen reader it is decoration, not content
## 6. You may change
- the label
- the initials through the people prop
- the counter text through the hint prop
- the avatar colour through the accent prop
- the onClick handler
- outer spacing through className
## 7. Rules
- Do not put real user names into people without their consent — this is a showcase element.
- Do not grow the stack past four avatars: beyond that it stops reading at button size.
- 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-007-*. Аватары рисуются CSS из инициалов: ни картинок, ни сетевых запросов. Первые три аватара получают разные оттенки автоматически.
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 Button007Props = ComponentPropsWithoutRef<"button"> & {
/** Инициалы для стопки аватаров. Картинок нет намеренно: ноль запросов. */
people?: string[]
hint?: string
accent?: string
}
// Идея компонента: социальное доказательство внутри самой кнопки. Слева —
// стопка перекрывающихся аватаров из инициалов, справа от подписи — тихая
// строка с количеством. Аватары нарисованы CSS, поэтому нет ни картинок,
// ни сетевых запросов, ни зависимостей.
const STYLES = `
:where([data-vibeui-block="button-007"]){
--vibeui-button-007-bg:oklch(0.22 0.014 265);
--vibeui-button-007-fg:oklch(0.98 0.003 265);
--vibeui-button-007-hint:oklch(0.72 0.012 265);
--vibeui-button-007-avatar:oklch(0.62 0.13 250);
--vibeui-button-007-avatar-fg:oklch(0.99 0.004 250);
--vibeui-button-007-ring:oklch(0.72 0.012 265);
--vibeui-button-007-radius:9999px;
--vibeui-button-007-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
[data-vibeui-block="button-007"]{
appearance:none;cursor:pointer;border:0;
display:inline-flex;align-items:center;gap:0.625rem;
height:2.75rem;padding:0 1.125rem 0 0.5rem;border-radius:var(--vibeui-button-007-radius);
font-family:var(--vibeui-button-007-font);font-size:0.875rem;font-weight:500;line-height:1;
background:var(--vibeui-button-007-bg);color:var(--vibeui-button-007-fg);
transition:background-color .18s ease;
}
[data-vibeui-block="button-007"] [data-part="stack"]{display:inline-flex;flex:none}
[data-vibeui-block="button-007"] [data-part="avatar"]{
width:1.75rem;height:1.75rem;border-radius:9999px;flex:none;
display:inline-flex;align-items:center;justify-content:center;
font-size:0.625rem;font-weight:600;letter-spacing:0.02em;
background:var(--vibeui-button-007-avatar);color:var(--vibeui-button-007-avatar-fg);
box-shadow:0 0 0 2px var(--vibeui-button-007-bg);
transition:transform .22s cubic-bezier(0.16,1,0.3,1);
}
[data-vibeui-block="button-007"] [data-part="avatar"]+[data-part="avatar"]{margin-left:-0.5rem}
[data-vibeui-block="button-007"] [data-part="avatar"]:nth-child(2){background:color-mix(in oklab, var(--vibeui-button-007-avatar) 70%, oklch(0.7 0.14 160))}
[data-vibeui-block="button-007"] [data-part="avatar"]:nth-child(3){background:color-mix(in oklab, var(--vibeui-button-007-avatar) 55%, oklch(0.72 0.16 40))}
[data-vibeui-block="button-007"]:hover:not(:disabled){background:color-mix(in oklab, var(--vibeui-button-007-bg) 82%, white)}
[data-vibeui-block="button-007"]:hover:not(:disabled) [data-part="avatar"]{margin-left:-0.25rem}
[data-vibeui-block="button-007"]:hover:not(:disabled) [data-part="avatar"]:first-child{margin-left:0}
[data-vibeui-block="button-007"] [data-part="hint"]{color:var(--vibeui-button-007-hint);font-size:0.8125rem;font-weight:400}
[data-vibeui-block="button-007"]:focus-visible{outline:2px solid var(--vibeui-button-007-ring);outline-offset:2px}
[data-vibeui-block="button-007"]:disabled{cursor:not-allowed;opacity:.55}
@media (prefers-reduced-motion:reduce){[data-vibeui-block="button-007"] *{transition:none!important}}
`
/**
* Кнопка с социальным доказательством: стопка аватаров и тихий счётчик.
* Один файл, ноль зависимостей, собственная палитра.
*/
export function Button007({
people = ["АК", "МД", "ЛП"],
hint = "+2 400 команд",
accent,
type = "button",
className,
style,
children = "Присоединиться",
...props
}: Button007Props) {
const palette = {
...(accent ? { "--vibeui-button-007-avatar": accent } : null),
...style,
} as CSSProperties
return (
<>
<style href="vibeui-button-007" precedence="medium">
{STYLES}
</style>
<button
{...props}
type={type}
data-vibeui-block="button-007"
className={className}
style={palette}
>
<span data-part="stack" aria-hidden="true">
{people.map((initials) => (
<span data-part="avatar" key={initials}>
{initials}
</span>
))}
</span>
{children}
{hint ? <span data-part="hint">{hint}</span> : null}
</button>
</>
)
}