ui: avoid passing component prop to rendered component in Flex story

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
MT Lewis
2026-04-16 15:14:35 +01:00
parent a2814693fa
commit a344f12bc7
@@ -283,9 +283,7 @@ export const FlexItems = meta.story({
options: [undefined, '0%', '25%', '50%', '100%', 'auto'],
},
},
render: args => {
const Component = args.component;
render: ({ component: Component, ...args }) => {
return (
<Flex style={{ width: '100%', height: '256px' }}>
<div