UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

22 lines (21 loc) 752 B
import React from 'react'; import createReactClass from 'create-react-class'; import Icon from "../../../../components/icon"; // `~` is replaced with design-system-react at runtime import IconSettings from "../../../../components/icon-settings"; var Example = createReactClass({ displayName: 'IconExample', render: function render() { return React.createElement(IconSettings, { iconPath: "/assets/icons" }, React.createElement(Icon, { assistiveText: { label: 'Description of icon' }, category: "action", name: "description", size: "small" })); } }); export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime //# sourceMappingURL=action.js.map