diff --git a/src/components/Stack/Stack.tsx b/src/components/Stack/Stack.tsx index c049fd2732a..66d9b246e57 100644 --- a/src/components/Stack/Stack.tsx +++ b/src/components/Stack/Stack.tsx @@ -32,9 +32,7 @@ export interface StackProps { distribution?: Distribution; } -export const Stack: NamedExoticComponent & { - Item: typeof Item; -} = memo(function Stack({ +export const Stack = memo(function Stack({ children, vertical, spacing, @@ -57,6 +55,8 @@ export const Stack: NamedExoticComponent & { }); return
{itemMarkup}
; -}); +}) as NamedExoticComponent & { + Item: typeof Item; +}; Stack.Item = Item;