Components

Card


Users
Manage user accounts and permissions.

Installation

NPM packages are currently unstable and may cause issues. Use it at your own risk.

npm install @mijn-ui/react-card

Example Usage

card-example.tsx
import { Button } from "@mijn-ui/react-button"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@mijn-ui/react-card"
import { LuArrowUpRight, LuPlus } from "react-icons/lu"
 
const CardExample = () => {
  return (
    <Card className="relative max-w-60">
      <CardHeader>
        <Button
          variant={"text"}
          color={"accent"}
          size={"icon"}
          className="rounded-lg bg-accent p-0 text-muted-text sm:size-12"
          asChild
        >
          <span>
            <LuPlus className="size-5 sm:size-6" />
          </span>
        </Button>
 
        <div className="absolute right-4 top-4 text-muted-text">
          <LuArrowUpRight className="size-5 sm:size-6" />
        </div>
      </CardHeader>
      <CardContent>
        <CardTitle className="text-base">Users</CardTitle>
        <CardDescription>Manage user accounts and permissions.</CardDescription>
      </CardContent>
    </Card>
  )
}
 
export default CardExample

Stats Card

Total Sales
$75,890.75

+128% from June

stats-card.tsx
import { Button } from "@mijn-ui/react-button"
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@mijn-ui/react-card"
import { IoBagOutline } from "react-icons/io5"
 
const StatsCardExample = () => {
  return (
    <Card className="max-w-44">
      <CardHeader className="px-5 pb-5 sm:px-6 sm:pb-4">
        <Button
          color="muted"
          size={"icon"}
          className="rounded-full p-0 sm:size-12"
        >
          <IoBagOutline className="size-4 sm:size-5" />
        </Button>
      </CardHeader>
 
      <CardContent className="flex flex-col gap-1 px-5 pb-5 sm:px-6 sm:pb-6">
        <CardDescription>Total Sales</CardDescription>
        <CardTitle className="text-xl font-medium sm:text-2xl">
          $75,890.75
        </CardTitle>
        <p className="text-xs font-normal text-muted-text">
          <span className="text-success">+128%</span> from June
        </p>
      </CardContent>
    </Card>
  )
}
 
export default StatsCardExample

On this page