github https://github.com/kamranahmedse/driver.js
yarn add driver.js
npm install driver.js
使用
import Driver from 'driver.js';
import 'driver.js/dist/driver.min.css';
// demo1
const driver = new Driver();
driver.highlight('#create-post')
// demo2
const driver = new Driver();
driver.highlight({
element: '#some-element',
popover: {
title: 'Title for the Popover',
description: 'Description for it',
}
});