--- title: "Simple Highlight" groupTitle: "Examples" sort: 11 --- import { FormHelp } from "../../components/FormHelp.tsx"; import { CodeSample } from "../../components/CodeSample.tsx"; Product tours is not the only usecase for Driver.js. You can use it to highlight any element on the page and show a popover with a description. This is useful for providing contextual help to the user e.g. help the user fill a form or explain a feature. Example below shows how to highlight an element and simply show a popover. Here is the code for above example: ```js const driverObj = driver({ popoverClass: "driverjs-theme", stagePadding: 4, }); driverObj.highlight({ element: "#highlight-me", popover: { side: "bottom", title: "This is a title", description: "This is a description", } }) ``` You can also use it to show a simple modal without highlighting any element. Yet another highlight example.", }, }} client:load /> Here is the code for above example: ```js const driverObj = driver(); driverObj.highlight({ popover: { description: "Yet another highlight example.", } }) ``` Focus on the input below and see how the popover is shown.