@cimpress/react-components
Version:
React components to support the MCP styleguide
47 lines • 1.81 kB
JavaScript
import React from 'react';
import { CodeExample } from '@cimpress/react-components';
import RobotCode from '!raw-loader!./robot.jsx';
import RobotDemo from './robot.jsx';
import ComponentDoc from '../../shared/TabbedComponentDoc';
const RobotDocs = () => {
const propInfos = [
{
name: 'size',
type: 'string',
default: 'sm',
description: (React.createElement("span", null,
"Sets the size of the robot. One of ",
React.createElement("code", null, "sm"),
" or ",
React.createElement("code", null, "lg"),
". Use the larger robot only for full-page messages.")),
},
{
name: 'status',
type: 'string',
default: 'success',
description: (React.createElement("span", null,
"The contextual style for the background and the demeanor of the robot. One of ",
React.createElement("code", null, "success"),
",",
' ',
React.createElement("code", null, "info"),
", ",
React.createElement("code", null, "warning"),
", or ",
React.createElement("code", null, "danger"),
".")),
},
{
name: 'alternate',
type: 'boolean',
default: 'false',
description: 'Uses an alternate robot image, if available. Not all states have alternates.',
},
];
return (React.createElement(ComponentDoc, { name: "Robot", propInfos: propInfos },
React.createElement(RobotDemo, null),
React.createElement(CodeExample, { code: RobotCode })));
};
export default RobotDocs;
//# sourceMappingURL=index.js.map