fbredius/storybook

View on GitHub
addons/docs/src/frameworks/react/__testfixtures__/9922-ts-component-props/docgen.snapshot

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`react component properties 9922-ts-component-props 1`] = `
"import React from 'react';

const Button = ({
  children,
  onClick
}) => /*#__PURE__*/React.createElement(\\"button\\", {
  onClick: onClick,
  type: \\"button\\"
}, children);

const WrappedButton = ({
  spacing,
  ...buttonProps
}) => /*#__PURE__*/React.createElement(\\"div\\", {
  style: {
    padding: spacing
  }
}, /*#__PURE__*/React.createElement(Button, buttonProps));

export const component = WrappedButton;
WrappedButton.__docgenInfo = {
  \\"description\\": \\"\\",
  \\"methods\\": [],
  \\"displayName\\": \\"WrappedButton\\",
  \\"props\\": {
    \\"spacing\\": {
      \\"required\\": true,
      \\"tsType\\": {
        \\"name\\": \\"number\\"
      },
      \\"description\\": \\"\\"
    }
  }
};"
`;