@cimpress/react-components
Version:
React components to support the MCP styleguide
17 lines • 661 B
JavaScript
import React from 'react';
import { ComponentDoc, CodeExample } from '@cimpress/react-components';
import DemoCode from '!raw-loader!./demo.jsx';
import Demo from './demo.jsx';
const DemoDocs = () => {
const aProp = {
name: 'aProp',
type: 'string',
default: '',
description: 'If this were a prop, you could describe it here.',
};
return (React.createElement(ComponentDoc, { name: "My Demo Component", propInfos: [aProp] },
React.createElement(Demo, null),
React.createElement(CodeExample, { code: DemoCode, initialOpen: false })));
};
export default DemoDocs;
//# sourceMappingURL=documentation.js.map