@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
22 lines (18 loc) • 705 B
JSX
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 Button from '~/components/button';
const Example = createReactClass({
displayName: 'TooltipExample',
render () {
return (
<IconSettings iconPath="/assets/icons">
<PopoverTooltip align="right" content="Tooltip with right alignment">
<Button label="Hover or focus to Open" />
</PopoverTooltip>
</IconSettings>
);
}
});
export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime