Skip to content

    Browse components

    Holo Badge

    Holographic profile card that tilts toward the pointer while rainbow foil, glitter and glare slide across it, with a glass contact bar.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/holo-badge

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/holo-badge.json

    Usage

    import { HoloBadge } from "@/components/ui/holo-badge";
    
    <HoloBadge
      name="Maya Laurent"
      title="Product Designer"
      handle="mayalaurent"
      avatarUrl="/maya.jpg"
      onContactClick={() => openChat()}
    />

    Props

    PropTypeDefaultDescription
    namestring"Maya Laurent"Display name.
    titlestring"Product Designer"Role under the name.
    handlestring"mayalaurent"Handle shown in the contact bar, without @.
    statusstring"Available for work"Status line with a live dot.
    contactTextstring"Contact"Button label.
    maxTiltnumber14Max tilt in degrees.
    foilnumber0.8Strength of the holographic foil.
    showUserInfobooleantrueShow the bottom contact bar.
    avatarUrlReactNode—Portrait that fills the card.
    miniAvatarUrlReactNode—Small avatar in the contact bar. Defaults to avatarUrl.
    onContactClickReactNode—() => void
    classNamestring—Extra classes for the root element.