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

Customization Guide

Transform MoonUI components to match your design vision with powerful customization options

QUICK & EASY

Tailwind Classes

Simple styling with className prop

component.tsx
<Button className="bg-gradient-to-r from-orange-500">

No Setup Required

Works immediately with any component

Full Tailwind Power

All utilities at your disposal

TYPE-SAFE

CVA Variants

Structured variants with TypeScript support

variants.ts
const variants = cva("base", { ... })

Type Safety

Full IntelliSense support

Reusable Patterns

Define once, use everywhere

Class-Based Styling

The quickest way to customize components

1. Basic Customization

All MoonUI components accept a className prop for instant customization:

app.tsx
// Gradient Button
<Button className="bg-gradient-to-r from-brand-500 to-brand-accent-500 
                   hover:from-brand-600 hover:to-brand-accent-600">
  Click Me
</Button>

// Custom Card
<Card className="border-2 border-dashed shadow-xl">
  <CardContent>Custom styled card</CardContent>
</Card>

2. Advanced Effects

Combine multiple utilities for complex effects:

effects.tsx
// Glowing button
<Button className="shadow-[0_0_15px_rgba(168,85,247,0.5)] 
                   hover:shadow-[0_0_30px_rgba(168,85,247,0.7)]
                   transition-all duration-300">
  Glow Effect
</Button>

Live Examples:

CVA Variant System

Type-safe component variants

1. What is CVA?

Class Variance Authority (CVA) provides a type-safe way to create component variants:

button-variants.ts
import { cva } from "class-variance-authority"

const buttonVariants = cva(
  "inline-flex items-center justify-center font-medium",
  {
    variants: {
      variant: {
        primary: "bg-blue-500 text-white hover:bg-blue-600",
        secondary: "bg-gray-200 text-gray-900 hover:bg-gray-300",
        danger: "bg-red-500 text-white hover:bg-red-600"
      },
      size: {
        sm: "h-8 px-3 text-sm",
        md: "h-10 px-4 text-base",
        lg: "h-12 px-6 text-lg"
      }
    },
    defaultVariants: {
      variant: "primary",
      size: "md"
    }
  }
)

2. Compound Variants

Apply styles based on multiple variant combinations:

compound.ts
compoundVariants: [
  {
    variant: "primary",
    size: "lg",
    class: "uppercase tracking-wider"
  }
]

Component Composition

Build complex UIs from simple parts

Compound Components

Components that work together sharing implicit state

<Select>
  <SelectTrigger />
  <SelectContent>
    <SelectItem />
  </SelectContent>
</Select>

Slot Pattern

Flexible content injection with named slots

<Layout
  header={<Header />}
  sidebar={<Sidebar />}
>
  <Content />
</Layout>

Wrapper Pattern

Enhance components with additional features

const Enhanced = 
  withTooltip(Button)

<Enhanced 
  tooltip="Info"
/>
Pro Tip: All MoonUI components use the cn() utility to merge classes intelligently. Your custom classes always take precedence!

Theme Builder

Create custom themes visually with our theme builder

Component Examples

See customization in action with real examples

MoonUIMoonUI

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

Read our Privacy Notice on how we process your email address.

By subscribing you agree to receive product updates by email.

Product

  • Components
  • Templates
  • Pricing

Resources

  • Documentation
  • GitHub
  • Support

Legal

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