Open
Description
The following input:
import React, { forwardRef } from 'react';
interface ButtonProps {
variant?: 'small' | 'large';
disabled?: boolean;
children: React.ReactNode;
}
export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(
{ disabled = false, variant = 'small', children },
ref
) {
return (
<button type="button" disabled={disabled} ref={ref}>
{children} {variant}
</button>
);
});
Produces:
{}
It's come up several times in Storybook: storybookjs/storybook#8894 and storybookjs/storybook#9511
Filed from storybookjs/storybook#24165