fix border style

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-09-02 17:13:05 +02:00
parent edf72ab183
commit 6d858380c7
5 changed files with 57 additions and 6 deletions
+12
View File
@@ -0,0 +1,12 @@
import type { BoxProps as OpenTUIBoxProps } from "@opentui/solid";
import { theme } from "../index.ts";
export interface BoxProps extends OpenTUIBoxProps {}
// The raw <box> intrinsic has no idea ilovetui's theme exists — its own
// borderStyle default ("single") is hardcoded in @opentui/core. Use <Box>
// instead of <box> wherever you want theme.borderStyle applied by default,
// same as Sidebar/Modal/Tabs already do internally.
export function Box(props: BoxProps) {
return <box {...props} borderStyle={props.borderStyle ?? theme.borderStyle} />;
}
+1
View File
@@ -1,4 +1,5 @@
export { Badge, type BadgeProps } from "./Badge.tsx";
export { Box, type BoxProps } from "./Box.tsx";
export { MinSizeGuard, type MinSizeGuardProps } from "./MinSizeGuard.tsx";
export { Modal, type ModalProps } from "./Modal.tsx";
export { NotificationHost, type NotificationHostProps } from "./NotificationHost.tsx";