UNPKG

@smitch/fluid

Version:

A Next/React ui-component libray.

9 lines (8 loc) 681 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: 'p-2', outline: false, children: [src && (_jsx(CardImage, { title: title, src: src, aspect: 'landscape' })), _jsxs(CardBody, { children: [_jsx("p", { className: 'line-clamp-2', children: description }), _jsx(CardFooter, { link: link, linkLabel: title })] })] }) })); }; export default AccordionCard;