Lean Card

A stacked card that reveals a striped back card on hover.

Loading...

Installation

npx shadcn@latest add @scrollxui/lean-card 

Usage

import { LeanCard, LeanCardContent } from "@/components/ui/lean-card"
<LeanCard>
  <LeanCardContent>
    <p>Your content here.</p>
  </LeanCardContent>
</LeanCard>

API Reference

Lean Card

A card component with a striped back card revealed on hover

Props

PropertyTypeDefaultDescription
classNamestring
Optional class for custom styling.
...propsReact.HTMLAttributes<HTMLDivElement>
All standard div props.
LeanCardReact.ReactNode
Root wrapper. Renders the striped back card internally.
LeanCardContentReact.ReactNode
Front card surface. Rotates on hover.

Built withby Ahdeetai.