driver.js / docs /src /components /examples /SimpleHighlight.tsx
kamrify's picture
Fix type definitions not found
acbae00
raw
history blame
381 Bytes
import { useEffect } from "react";
import type { DriveStep } from "driver.js";
type SimpleHighlightProps = {
popover: DriveStep.Popover;
}
export function SimpleHighlight() {
useEffect(() => {
console.log('in browser');
}, []);
return (
<button onClick={() => alert('sup')} className='w-full rounded-md bg-black p-2 text-white'>Highlight Something</button>
);
}