@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.
7 lines (6 loc) • 706 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { IntentBoxClient } from './intent-box.client';
export function IntentBoxDefaultView(props) {
const { attributes, labelText, placeholder, submitButtonTooltip, containerCss, pageUrl, inputId, suggestions, suggestionsLabel } = props;
return (_jsxs("div", { ...attributes, className: `sf-intent-box row ${containerCss}`, children: [labelText && _jsx("h2", { className: "mt-4 mb-4 text-center", children: labelText }), _jsx(IntentBoxClient, { targetPageUrl: pageUrl, placeholder: placeholder, inputId: inputId, submitButtonTooltip: submitButtonTooltip, suggestions: suggestions || [], suggestionsLabel: suggestionsLabel })] }));
}