From 36aff3305c43af67b0119f668351896fb071e8aa Mon Sep 17 00:00:00 2001 From: MT Lewis Date: Thu, 16 Apr 2026 15:36:33 +0100 Subject: [PATCH] ui: clean up prop spreading in Flex story DecorativeBox component Signed-off-by: MT Lewis --- packages/ui/src/components/Flex/Flex.stories.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/ui/src/components/Flex/Flex.stories.tsx b/packages/ui/src/components/Flex/Flex.stories.tsx index dac4f530c1..7812e47770 100644 --- a/packages/ui/src/components/Flex/Flex.stories.tsx +++ b/packages/ui/src/components/Flex/Flex.stories.tsx @@ -40,7 +40,12 @@ const meta = preview.meta({ args: { children: null }, }); -const DecorativeBox = (props: Omit) => { +const DecorativeBox = ({ + width = '48px', + height = '48px', + style, + ...props +}: Omit) => { const diagonalStripePattern = (() => { const svg = ` @@ -54,9 +59,11 @@ const DecorativeBox = (props: Omit) => { return ( ) => { fontWeight: 'bold', color: '#2563eb', }} - {...props} children={null} /> );