Skip to content

Card

A bordered surface that groups one subject: a summary, a settings group, a chart. Compose it from a header (title, description, action), content and a footer; leave out any part.

Language
Appearance

Settings group

Business hours

When the agent books appointments.

Monday to Friday, 7:00 to 18:00
Times are in the clinic’s time zone.
import { Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@arbol-ai/ui';

<Card className="max-w-md">
  <CardHeader>
    <CardTitle>Business hours</CardTitle>
    <CardDescription>When the agent books appointments.</CardDescription>
    <CardAction>
      <Button size="sm" variant="outline">
        Edit
      </Button>
    </CardAction>
  </CardHeader>
  <CardContent className="text-sm">Monday to Friday, 7:00 to 18:00</CardContent>
  <CardFooter className="text-muted-foreground border-t pt-6 text-xs">
    Times are in the clinic’s time zone.
  </CardFooter>
</Card>

Summary

Reminder campaign

Running

1,284

contacts called this week

import { Badge, Card, CardAction, CardContent, CardFooter, CardHeader, CardTitle, Link } from '@arbol-ai/ui';

<Card className="max-w-sm">
  <CardHeader>
    <CardTitle>Reminder campaign</CardTitle>
    <CardAction>
      <Badge tone="success">Running</Badge>
    </CardAction>
  </CardHeader>
  <CardContent>
    <p className="font-heading text-3xl font-medium">1,284</p>
    <p className="text-muted-foreground text-sm">contacts called this week</p>
  </CardContent>
  <CardFooter>
    <Link className="text-sm" href="#/card">
      Open the campaign
    </Link>
  </CardFooter>
</Card>

Source

The examples above are src/components/card/card.examples.tsx, which the library’s tests render too.

Type to search…

↑↓ navigate↵ selectEsc close