Skip to content

    Browse components

    Facescape

    A little face built from simple shapes that watches your cursor, lifts its brows and grins as you get close. Click to boop.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/facescape

    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/facescape.json

    Usage

    import { Facescape } from "@/components/ui/facescape";
    
    <div className="relative grid h-96 place-items-center">
      <Facescape size={280} faceColor="#ffd166" />
    </div>

    Props

    PropTypeDefaultDescription
    sizenumber280Face size in px.
    faceColorstring"#ffd166"Head color.
    featureColorstring"#1c1917"Eyes, brows and mouth color.
    cheekColorstring"#ff8fab"Blush color.
    follownumber1How strongly the head turns toward the cursor.
    blinkbooleantrueBlink every few seconds.
    labelstring"Illustrated face that follows your cursor"Accessible description.
    classNamestring—Extra classes for the root element.