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 Switch

    M Switch

    5
  • Tab Bar Item

    Tab Bar Item

    3
  • MCheckbox

    MCheckbox

    3
  • MListItem

    MListItem

    2
  • Segmented Control

    Segmented Control

    2
  • M Button

    M Button

  • MBadge

    MBadge

  • Side Panel Item

    Side Panel Item

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 7

    Statistics Card 7

    327
  • Statistics Card 2

    Statistics Card 2

    305
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    625
  • Card Studio

    Card Studio

    5
  • The Item one

    The Item one

    4
  • Weather Card

    Weather Card

    65
  • Card

    Card

    9