Card
Card. It is copied into your app’s ui/ by qatjs add card: the code is yours to edit.
Example
Saffron tea, 50 gHarvested in Bilgəh, packed this month.
7.90 ₼
Express deliveryTomorrow before 12:00
import Button from './ui/button/button.qx'
import Card from './ui/card/card.qx'
export default function Example() {
return (
<div class="example-grid">
<Card
title="Saffron tea, 50 g"
description="Harvested in Bilgəh, packed this month."
footer={(
<span>7.90 ₼</span>
<Button>Add to order</Button>
)}
/>
<Card title="Express delivery" description="Tomorrow before 12:00" href="#delivery" selected />
</div>
)
}Add it
npx qatjs add cardCard
As a custom element: <ui-card>.
| Prop | Type | Attribute |
|---|---|---|
title | QatNode | property only |
description | QatNode | property only |
media | QatNode | property only |
footer | QatNode | property only |
href | QatHref | yes |
selected | boolean | yes |
Keys
| Key | Does |
|---|---|
| Tab | one stop for a linked card |