Services Cards
Four offers in one row: hover or focus a card and it swells while the others yield; a cursor-lit border follows the pointer, the icon tile tilts and deliverables stagger in with ticking checks.
Try it: Hover or focus a card; tap on touch.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/services-cards.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/services-cards. You can also copy the source into components/ui/services-cards.tsx (view on GitHub).
Usage
import { ServicesCards } from '@/components/ui/services-cards'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
services | ServiceItem[] | 4 sample offers | { id, title, summary, deliverables[], price?, icon? } |
defaultActive | string | — | Initially expanded id. |
titleAs | 'h2' | 'h3' | 'h4' | 'h3' | Heading element for item titles, so the page outline stays valid. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Portfolio components
- Scroll Reveal
A wrapper that animates its content in on scroll: seven effects (rise, fade, blur, scale, clip, slide-left/right), optional child staggering, any scroll container, and a no-motion fallback.
- Résumé Download Button
The document glyph prints itself line by line, then drops into a tray as the file downloads and the label settles on “Saved”. Live status for screen readers.
- Studio Folio Template
A complete one-page designer portfolio composed from Framekit parts — intro preloader, kinetic name hero, spy-nav, impact stats, filterable work with lightbox, services, testimonials, contact form…
- Reading Progress + TOC
A spring-smoothed reading bar and a sticky table of contents that lights the section on screen, with a live “min left” estimate — made for long-form blog posts.
- Dev Folio Template
A developer-flavoured one-pager composed from Framekit parts — terminal hero, skills marquee, hover-preview project index, scroll-drawn career timeline, skill meters, social dock, copy-email +…
- Intro Preloader
Greeting words flick by while a big counter climbs 0→100, then the ink curtain lifts with a trailing curve that flattens as it leaves and the page settles from a slight zoom. Skippable.