From ebebbee0c0a3353ad36c2b060c45e38e9b77c2f9 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Fri, 26 Sep 2025 17:32:15 +0800 Subject: [PATCH] Added option to add background --- src/components/Box/Box.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Box/Box.tsx b/src/components/Box/Box.tsx index 80cf5a4..b641bcd 100644 --- a/src/components/Box/Box.tsx +++ b/src/components/Box/Box.tsx @@ -7,13 +7,14 @@ interface Props { children: JSXElement curved?: boolean padding?: number + background?: string } export default (props: Props) => { const boxClass = createMemo(() => (props.curved ? 'curvedbox' : 'box')) return ( -
+
{props.children}
)