millaistudio

MCard

Cards

About

A simple container card with configurable padding, elevation shadow, and element tag, ported from the Millai UI Vue library's MCard component.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds MCard to your project and fits it to your theme.

Code

How MCard is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import MCard from "@/components/ui/mcard";

export default function MCardElevatedDemo() {
  return (
    <div className="w-full max-w-sm p-6">
      <MCard elevated as="section" padding="large">
        <h3 style={{ margin: 0, fontWeight: 600 }}>Storage Usage</h3>
        <p style={{ marginTop: 8, marginBottom: 0 }}>
          18.4 GB of 50 GB used across your workspace.
        </p>
      </MCard>
    </div>
  );
}

More by millaistudio

View all
  • M Button

    M Button

  • MListItem

    MListItem

  • MBadge

    MBadge

More in Cards

View all
  • Statistics Card 7

    Statistics Card 7

    294
  • Course Design Cards

    Course Design Cards

    1.1K
  • Statistics Card 2

    Statistics Card 2

    267
  • Stats cards with links

    Stats cards with links

    122
  • Card

    Card

    17
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    14
  • Card

    Card

    56