@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
19 lines (15 loc) • 577 B
JSX
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';
const Example = createReactClass({
displayName: 'AvatarExample',
render () {
return (
<IconSettings iconPath="/assets/icons">
<Avatar variant="entity" label="Acme Communications" size="medium" />
</IconSettings>
);
},
});
export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime