Social Dock
A floating link dock whose icons swell with a spring as the pointer (or keyboard focus) nears them, with a coloured halo and a springy label chip. Generic glyphs — bring your own.
Try it: Sweep across the dock — icons magnify; Tab through to magnify by keyboard.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/social-dock.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/social-dock. You can also copy the source into components/ui/social-dock.tsx (view on GitHub).
Usage
import { SocialDock } from '@/components/ui/social-dock'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
items | { label, href, icon, color? }[] | 6 generic links | Dock links. |
size / maxSize | number | 48 / 76 | Resting and peak icon sizes in px. |
aria-label | string | 'Find me elsewhere' | Accessible name of the nav. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Portfolio components
- Copy Email Button
A pill showing your address: the glyph morphs to a check, the label rolls to “Copied”, a ring pulses out and a live region confirms. Falls back to a select hint if the clipboard is blocked.
- Contact Form Card
Validated on blur and submit with announced inline errors (shake + focus jump), optional async onSubmit with a sending morph, a drawn-check success scene with a particle burst, and a failure state…
- Availability Badge
A status pill with a motion language per state: “open” sends two staggered radar ripples, “limited” breathes slowly, “booked” holds still. Copy swaps on a vertical spring; optional live local clock.
- Client Logo Strip
A calm trust row of generated marks with a cursor-following spotlight that lights hairline borders; marks lift and spin a few degrees on hover/focus.
- Portfolio Footer
A closing statement in giant display type — letters rise out of masks on scroll-in and a light follows the cursor across the glyphs — with a slow ribbon marquee, links and back-to-top.
- Testimonial Carousel
Large display-type quotes sliding on direction-aware springs with swipe/drag, arrow keys and a progress-filled dot for auto-advance. Pauses on hover, focus and drag.