adwaita-web
Version:
A GTK inspired toolkit designed to build awesome web apps
26 lines (25 loc) • 578 B
JavaScript
import clsx from "clsx";
import React from "react";
import { Box } from "./Box";
import { Label } from "./Label";
function MenuInlineButton({
children,
className,
label,
...rest
}) {
return /* @__PURE__ */ React.createElement(Box, {
horizontal: true,
className: clsx("Menu__item inline-buttons", className),
align: true,
...rest
}, /* @__PURE__ */ React.createElement(Label, {
className: "Box__fill"
}, label), /* @__PURE__ */ React.createElement(Box, {
horizontal: true,
compact: true
}, children));
}
export {
MenuInlineButton
};