Card

Playground

Content

Title
Description
Button

Usage

Build the card with Header, Title, Description, Content and Footer. If the whole card is clickable, make sure its action does not conflict with buttons inside.

'use client';
import {
  Card,
  CardHeader,
  CardLabel,
  CardTitle,
  CardDescription,
  CardContent,
} from '@mbsw/ui';

export default function Example() {
  return (
    <Card>
      <CardHeader>
        <CardLabel>
          <CardTitle>{"Sign in"}</CardTitle>
          <CardDescription>{"Use your work email to sign in."}</CardDescription>
        </CardLabel>
      </CardHeader>
      <CardContent>{"Email / password"}</CardContent>
    </Card>
  );
}

The Playground Code tab includes the full example with your current settings. See Installation for the CSS imports.

Composition