mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-10-05 19:08:25 +02:00
24 lines
581 B
JavaScript
24 lines
581 B
JavaScript
// @bun
|
|
import {
|
|
theme
|
|
} from "./chunk-9cbm4zqz.js";
|
|
|
|
// src/components/Box.tsx
|
|
import { spread as _$spread } from "@opentui/solid";
|
|
import { mergeProps as _$mergeProps } from "@opentui/solid";
|
|
import { memo as _$memo } from "@opentui/solid";
|
|
import { createElement as _$createElement } from "@opentui/solid";
|
|
function Box(props) {
|
|
return (() => {
|
|
var _el$ = _$createElement("box");
|
|
_$spread(_el$, _$mergeProps(props, {
|
|
get borderStyle() {
|
|
return props.borderStyle ?? theme.borderStyle;
|
|
}
|
|
}), false);
|
|
return _el$;
|
|
})();
|
|
}
|
|
|
|
export { Box };
|