UNPKG

@smitch/fluid

Version:

A lightweight, Tailwind-powered React/Next.js UI component library.

9 lines 747 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { AccordionSection } from "../atoms"; import { Card, CardBody, CardImage, CardFooter } from "../.."; var AccordionCard = function (_a) { var src = _a.src, title = _a.title, description = _a.description, link = _a.link; return (_jsx(AccordionSection, { children: _jsxs(Card, { layout: "row", className: "accordion-card p-2", outline: false, children: [src && _jsx(CardImage, { title: title, src: src, aspect: "landscape" }), _jsxs(CardBody, { children: [_jsx("p", { className: "line-clamp-2 max-w-prose", children: description }), _jsx(CardFooter, { link: link, linkLabel: title })] })] }) })); }; export default AccordionCard; //# sourceMappingURL=AccordionCard.js.map