Documentation Index
Fetch the complete documentation index at: https://dapplets.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Basic usage
You don’t need to import the component. It’s available in the NEAR Components through the Layout Managers.Props
It takes in properties defined by THighlighterTask, including target, styles, icon, action, and an optional filled state.| Name | Type | Optional | Description |
|---|---|---|---|
target | InjectableTarget | The target context to be highlighted | |
isFirstTargetOnly | boolean | ✔️ | If true, only the first visible context of the specified type on the page will be selected. If the page is scrolled, a new visible context will be selected. |
styles | React.CSSProperties | ✔️ | CSS styles for the highlighting. Can be set: position, backgroundColor, border, borderWidth, borderStyle, borderColor, borderRadius, zIndex, opacity, cursor |
isFilled | boolean | ✔️ | If true, a color overlay will be placed on the target context. You can add a click interaction to it using the action prop. |
icon | ReactElement | ✔️ | The image that will be displayed in the center of the filled target context. |
action | () => void | ✔️ | A callback that will be called when a filled context is clicked. |