ComponentsMatrix Card

Matrix Card

A reusable card component that displays a matrix rain effect on hover, combining smooth animations with canvas-based effects.

Matrix Rain Card

Hover or hold to see the matrix rain effect!

Code

1

Install with shadcn Beta

Terminal

npx shadcn@latest add "https://smoothui.dev/r/matrix-card.json"

Or install the demo

Terminal

npx shadcn@latest add "https://smoothui.dev/r/matrix-card-demo.json"

How to use

Demo.tsx

"use client"

import React from "react"

import MatrixCard from "@/components/smoothui/ui/MatrixCard"

const MatrixCardDemo = () => {
  return (
    <MatrixCard
      title="Matrix Rain Card"
      description="Hover or hold to see the matrix rain effect!"
      fontSize={16}
    />
  )
}

export default MatrixCardDemo

Props

PropTypeDescription
title?stringCard title.
description?stringCard description.
fontSize?numberFont size for the matrix effect.
chars?stringCharacters to use in the matrix effect.
className?stringOptional additional class names for the root container.
children?ReactNodeCustom content inside the card (replaces title/description).