@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
21 lines (20 loc) • 782 B
JavaScript
import React from 'react';
import createReactClass from 'create-react-class';
import Avatar from "../../../../components/avatar"; // `~` is replaced with design-system-react at runtime
import IconSettings from "../../../../components/icon-settings";
var Example = createReactClass({
displayName: 'AvatarExample',
render: function render() {
return React.createElement(IconSettings, {
iconPath: "/assets/icons"
}, React.createElement(Avatar, {
assistiveText: {
icon: 'Avatar image'
},
imgSrc: "https://lightningdesignsystem.com/assets/images/avatar2.jpg",
imgAlt: "Person Name"
}));
}
});
export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime
//# sourceMappingURL=base.js.map