Skip to content
MoonUIMoonUI
ComponentsTemplatesPricing
Sign inGet started

Getting started

  • Introduction
  • Installation
  • CDN
  • Authentication
  • shadcn CLI
  • MCP Server
  • Usage

Components

Foundation25 components
  • Alert
  • Aspect Ratio
  • Avatar
  • Badge
  • Button
  • Button Group
  • Checkbox
  • File Upload
  • Input
  • Kbd
  • Label
  • Radio Group
  • Rating
  • Select
  • Slider
  • Switch
  • Textarea
  • Toggle
  • Toggle Group
  • Separator
  • Tags Input
  • Color Picker
  • Date Picker
  • Simple Editor
  • Input OTP
Layout10 components
  • Accordion
  • Breadcrumb
  • Card
  • Carousel
  • Collapsible
  • ResizablePro
  • Scroll Area
  • StepperPro
  • Table
  • Tabs
Navigation & Overlays11 components
  • Alert DialogPro
  • Command
  • Context MenuPro
  • Dialog
  • Dropdown Menu
  • Hover CardPro
  • MenubarPro
  • Pagination
  • Popover
  • SheetPro
  • Tooltip
Feedback4 components
  • Progress
  • Skeleton
  • Spinner
  • Toast
Data & Analytics4 components
  • Data TablePro
  • Advanced ChartPro
  • DashboardPro
  • WidgetsPro
Navigation4 components
  • Command AI+Pro
  • SidebarPro
  • NavbarPro
  • Navigation MenuPro
AI Chat4 components
  • MessagePro
  • Message ScrollerPro
  • AttachmentPro
  • Conversation MarkerPro
Content Management6 components
  • Advanced FormsPro
  • Form WizardPro
  • Quiz FormPro
  • Credit Card InputPro
  • Phone Number InputPro
  • Rich Text EditorPro
Project Management3 components
  • KanbanPro
  • TimelinePro
  • CalendarPro
Performance & Utility8 components
  • Virtual ListPro
  • Memory Efficient DataPro
  • Lazy ComponentPro
  • Optimized ImagePro
  • Performance MonitorPro
  • Performance DebuggerPro
  • Error BoundaryPro
  • Health CheckPro
Interactive & Animation15 components
  • Animated NumberPro
  • Floating DockPro
  • Text RevealPro
  • Image ComparePro
  • Splash CursorPro
  • GitHub StarsPro
  • Animated ButtonPro
  • Magnetic ButtonPro
  • Magnetic ElementsPro
  • Mouse TrailPro
  • Hover Card 3DPro
  • Spotlight CardPro
  • Floating Action ButtonPro
  • LightboxPro
  • Media GalleryPro
Gesture & Touch7 components
  • Swipeable CardPro
  • Draggable ListPro
  • Pinch ZoomPro
  • Swipe ActionsPro
  • Gesture DrawerPro
  • Click AnimationsPro
  • Touch GesturesPro
Text Animations12 components
  • Text HighlighterPro
  • Typewriter TextPro
  • Scrambled TextPro
  • Word RotatePro
  • Morphing TextPro
  • Flip TextPro
  • Number TickerPro
  • Glitch TextPro
  • Shiny TextPro
  • Wavy TextPro
  • Gradient TextPro
  • Text 3DPro
Animations12 components
  • Animated ListPro
  • Bounce EffectPro
  • Blur FadePro
  • Elastic AnimationPro
  • MarqueePro
  • Parallax ScrollPro
  • Reveal CardsPro
  • Scroll RevealPro
  • Fade TransitionsPro
  • Focus TransitionsPro
  • Path AnimationsPro
  • SVG AnimationsPro
Layouts1 components
  • Bento GridPro
Effects9 components
  • ConfettiPro
  • Cursor TrailPro
  • Glow EffectPro
  • Pixel ImagePro
  • Neon EffectPro
  • ShimmerPro
  • RipplePro
  • SparklesPro
  • SpotlightPro
Backgrounds17 components
  • Grid PatternPro
  • MeteorsPro
  • Aurora BackgroundPro
  • ParticlesPro
  • StarfieldPro
  • Dot PatternPro
  • Grid DistortionPro
  • WavesPro
  • Matrix RainPro
  • Liquid BackgroundPro
  • Mesh GradientPro
  • Glitch BackgroundPro
  • Gradient FlowPro
  • Floating ElementsPro
  • Bubble BackgroundPro
  • Geometric PatternsPro
  • Code SnippetsPro
Special UI1 components
  • Glow CardPro
Showcase8 components
  • iPhone MockPro
  • Android MockPro
  • Safari MockPro
  • GlobePro
  • Dotted MapPro
  • Icon CloudPro
  • Tweet CardPro
  • File TreePro

Advanced

  • Theming
  • Customization
  • CLI
  • Help & Support
  1. Docs
  2. Components
  3. Card

Card

Free + Pro

Container component with both Free and Pro versions. Free offers basic layout, Pro adds 3D effects and animations.

Pro

What Pro adds to Card

The free card is MIT-licensed. The Pro version builds on it with:

  • Both Free and Pro versions available - Choose based on your needs
  • Free: Basic card layout with header, content, and footer sections
  • Free: 6 variants, a sm-to-xl density scale, radius options and asChild polymorphic rendering
See pricing

Pro features

What the Pro version adds to this component.

  • Premium Variants

    Access glass, gradient, neon, and glow card styles with stunning visual effects

  • Interactive Effects

    3D tilt perspective, parallax depth layers, glow hover, and smooth lift animations

  • Visual Enhancements

    Backdrop blur, animated gradients, glow effects, and shadow transitions

  • Performance Optimized

    GPU-accelerated animations with reduced repaints for smooth 60fps interactions

Installation

Install via CLI

# Default installation (asks for version if Pro license detected)
npx @moontra/moonui-cli add card

# Explicit version selection
npx @moontra/moonui-cli add card --variant=free  # Install free version
npx @moontra/moonui-cli add card --variant=pro   # Install pro version (requires license)

# Installation paths:
# - Free version: components/ui/card.tsx
# - Pro version: components/pro/card-pro.tsx

Usage

Basic Usage

Pro required

Create project

Deploy your new project in one-click.

Choose a framework to get started with your project.

Pro Usage

Pro
Pro required

Examples

Simple Card

Basic card with minimal content.

Card with Content

Card with header, content, and footer sections.

User Profile Card

Card displaying user information with avatar.

Stats Card

Card showing statistics with icons.

Size Scale (Section Padding)

size is a density switch, not a width switch: the root Card hands its resolved size down to CardHeader, CardContent and CardFooter through React context. md is the default and keeps the classic 24px padding, so existing cards render exactly as before.

Variants

All six free variants side by side. glass and gradient are rendered over a tinted surface here, because their translucency only reads against a background with some contrast.

Radius Scale

radius is independent from size and variant. It replaces the rounding of the card root only, so nested media still needs its own rounding.

Card as a Link (asChild)

With asChild the card styles are applied to your own element through Radix Slot, so the whole card becomes a single anchor: one hit target, one focus stop, real middle-click and open-in-new-tab behaviour. The size context still reaches the sections and the interactive CSS classes still apply, but the Framer Motion micro-interaction is skipped in this mode - Slot merges props into one child while motion needs an element of its own. Swap the anchor for a Next.js Link when you route internally.

Pro
Pro examples

Premium Analytics Dashboard Card

Pro

Advanced glassmorphism card with real-time stats, animated charts, and interactive hover effects.

Pro required

3D Interactive Pricing Card

Pro

Advanced 3D tilt effect with parallax layers, animated gradients, and interactive elements.

Pro required

System Monitoring Card with Live Updates

Pro

Real-time system monitoring with animated progress bars, status indicators, and gradient animations.

Pro required

Interactive Glow Card

Pro

Premium glow effect using the real Pro `glow` variant with `microInteraction="glow"`. For a cursor-following spotlight, use the dedicated Spotlight Card Pro component.

Pro required
Previous
Breadcrumb
Next
Carousel
MoonUIMoonUI

168 React components. 45 free under MIT, 123 Pro.

Unsubscribe anytime.

Product

  • Components
  • Templates
  • Pricing

Resources

  • Documentation
  • GitHub
  • Support

Legal

  • Privacy
  • Terms
  • Refund Policy
Made by Moontra Software
  • X
  • LinkedIn
  • GitHub
  • YouTube