UI.MD

Card Link Row

A row in a card that links somewhere, with an optional line under the label and a count of what is waiting there.

Installation

$
npx shadcn@latest add https://ui.mattdowney.com/r/card-link-row.json

Usage

import { CardLinkRow } from "@/components/ui/card-link-row"

Examples

Default

A home screen's list of work waiting elsewhere. A count of 0 hides itself; a row with nothing to count leaves count off. Pass render={<Link />} for a router link.

API Reference

PropTypeDefaultDescription
countCardLinkRownumber-What is waiting at the link. Hidden at 0.
descriptionCardLinkRowReactNode-One line under the label.
renderCardLinkRowReactElement-The element to render as, such as a router <Link />. An <a> by default.
countCardLinkRownumberWhat is waiting at the link. Hidden at 0.
descriptionCardLinkRowReactNodeOne line under the label.
renderCardLinkRowReactElementThe element to render as, such as a router <Link />. An <a> by default.