Card

A bordered surface with a title, body and footer.

Ethiopia Guji

Washed, light roast. Peach, jasmine and black tea.

250 gWhole bean
import { Badge, Button, Card } from '@brand-studio/ui';

export default function CardDemo() {
  return (
    <div style={{ width: '100%', maxWidth: 360 }}>
      <Card
        title="Ethiopia Guji"
        description="Washed, light roast. Peach, jasmine and black tea."
        footer={<><Button>Add to basket</Button><Button tone="secondary">Details</Button></>}
      >
        <div style={{ display: 'flex', gap: 8 }}><Badge>250 g</Badge><Badge tone="outline">Whole bean</Badge></div>
      </Card>
    </div>
  );
}

Installation

pnpm add @brand-studio/ui

Usage

import { Card } from '@brand-studio/ui';
<Card title="Ethiopia Guji" description="Washed, light roast." footer={<Button>Add</Button>}>

</Card>

Accessibility

  • Renders an <article> with the title as an <h3>.

API Reference

PropTypeDefault
title?React.ReactNode
description?React.ReactNode
footer?React.ReactNode

Also accepts every HTMLAttributes<HTMLElement> attribute.

Still, Deskhand and Hollis are fictional brands. The coffee photographs are original generated artwork. @brand-studio/ui is MIT licensed.