From bc67d9a44528d18867fefbc860ecb8c5709a5a3e Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Wed, 5 Nov 2025 10:38:09 +0800 Subject: [PATCH] Added width props on box component --- 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 255dd2a..49247fd 100644 --- a/src/components/Box/Box.tsx +++ b/src/components/Box/Box.tsx @@ -8,13 +8,14 @@ interface Props { curved?: boolean padding?: string background?: string + width?: string } export default (props: Props) => { const boxClass = createMemo(() => (props.curved ? 'curvedbox' : 'box')) return ( -
+
{props.children}
)