UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

32 lines (28 loc) 957 B
import React from 'react'; import createReactClass from 'create-react-class'; import IconSettings from '~/components/icon-settings'; import PopoverTooltip from '~/components/popover-tooltip'; // `~` is replaced with design-system-react at runtime import Icon from '~/components/icon'; const Example = createReactClass({ displayName: 'TooltipExample', render () { return ( <IconSettings iconPath="/assets/icons"> <PopoverTooltip align="top left" content="Sit nulla est ex deserunt exercitation anim occaecat. Nostrud ullamco deserunt aute id consequat veniam incididunt duis in sint irure nisi." > <a href="javascript:void(0)"> <Icon assistiveText="Tooltip with icon" category="utility" name="info" size="x-small" /> </a> </PopoverTooltip> </IconSettings> ); } }); export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime