UNPKG

@ducor/react

Version:

admin template ui interface

9 lines (8 loc) 699 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { twMerge } from "tailwind-merge"; var Page = function (_a) { var title = _a.title, children = _a.children; document.title = title; return (_jsx("div", { "data-du": 'main', children: _jsxs("div", { className: twMerge("overscroll-auto focus:overscroll-contain"), children: [_jsx("header", { className: 'bg-white shadow', children: _jsx("div", { className: 'mx-auto px-4 py-6 sm:px-6 lg:px-8', children: _jsx("h1", { className: 'text-3xl font-bold tracking-tight text-gray-900', children: title }) }) }), _jsx("div", { className: 'mx-auto py-6 sm:px-6 lg:px-8 ', children: children })] }) })); }; export default Page;