adwaita-web
Version:
A GTK inspired toolkit designed to build awesome web apps
26 lines (25 loc) • 588 B
JavaScript
import clsx from "clsx";
import React from "react";
import { Box } from "./Box";
function HeaderBarTitle({
children,
subtitle,
className,
fill
}) {
return /* @__PURE__ */ React.createElement(Box, {
vertical: true,
fill: true,
align: true,
justify: true,
grow: true,
className: clsx("HeaderBar__title", className, { Box__fill: fill })
}, /* @__PURE__ */ React.createElement("div", {
className: "title"
}, children), subtitle && /* @__PURE__ */ React.createElement("div", {
className: "subtitle"
}, subtitle));
}
export {
HeaderBarTitle
};