Ethiopia Guji
Washed, light roast. Peach, jasmine and black tea.
250 gWhole bean
Washed, light roast. Peach, jasmine and black tea.
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>
);
}pnpm add @brand-studio/uinpm install @brand-studio/uiyarn add @brand-studio/uibun add @brand-studio/uinpm install react react-domimport '@brand-studio/ui/styles.css';import { BrandTheme, Card } from '@brand-studio/ui';
import brand from './brand.json';
<BrandTheme palette={brand.tokens} mode="system">
{/* your app */}
</BrandTheme>import { Card } from '@brand-studio/ui';<Card title="Ethiopia Guji" description="Washed, light roast." footer={<Button>Add</Button>}>
…
</Card><article> with the title as an <h3>.| Prop | Type | Default |
|---|---|---|
title? | React.ReactNode | – |
description? | React.ReactNode | – |
footer? | React.ReactNode | – |
Also accepts every HTMLAttributes<HTMLElement> attribute.