UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

24 lines (23 loc) 834 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: "utility", colorVariant: "default", name: "announcement", size: "small", title: "description of icon when needed" })); } }); export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime //# sourceMappingURL=utility.js.map