@progress/sitefinity-nextjs-sdk
Version:
Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.
9 lines (8 loc) • 425 B
JavaScript
'use client';
import { jsx as _jsx } from "react/jsx-runtime";
export function AccordionLink(props) {
const handleMouseDown = (event) => {
event.target.parentElement.removeAttribute('data-bs-toggle');
};
return (_jsx("a", { onMouseDown: handleMouseDown, title: props.Title, className: "nav-link sc-accordion-link p-0 text-truncate", href: props.Url, target: props.LinkTarget, children: props.Title }));
}