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

    7
  • Tab Bar Item

    Tab Bar Item

    4
  • MCheckbox

    MCheckbox

    4
  • MListItem

    MListItem

    3
  • Segmented Control

    Segmented Control

    3
  • 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
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198