Highlight
Marks an existing item someone was taken to, from a notification, a link, search or Firm Pilot. It never shows for an item they just created. Every item that can be linked to has this state. It is a ring that flows round the edge: a blue-to-navy comet turning once every 3 seconds. A record (a note, task, interaction, document or fact) also breathes a very light navy tint under it, until the reader presses anywhere. A control on an opportunity, like the field Firm Pilot points at, gets the ring alone for 4 seconds. useHighlight scrolls the target to the middle first. Both are hidden from screen readers; with reduced motion the ring is a still focus-blue edge and the tint holds steady.
BetaReady to use. Its API can still change in a minor release; the changelog says when.
import { Highlight, useHighlight } from "@leap-crm/design-system";Playground
Change a prop and the component follows. Its code is under Props.
Finance pre-approval received
Props
Best practices
When to use it, and the rules that apply in particular places.
| Guidance | Practice |
|---|---|
| Do | Show it on an existing item someone was taken to, from a notification, a link, search or Firm Pilot. Drive it with useHighlight, which scrolls the item to the middle first. |
| Do | Pass the radius of what it covers: none for a table row, md for a workspace card, lg for a Card, so the ring follows the edge. |
| Do | Use kind="control" for the one field Firm Pilot points at on an opportunity, with frame="inside" when the control sits in a box that clips. |
| Do | Move focus to the target when it should be announced. The highlight is hidden from screen readers. |
| Don't | Highlight an item the user just created. Pass null to useHighlight for it: they already know where it is. |
| Don't | Use it for a selected row, a hover or an error. It means only that someone was taken here; those states belong to the component itself. |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| active * | boolean | — | Shows the highlight. It fades in and out. |
| kind | "record" | "control" | "record" | Record: a row or card someone was directed to, like a note, task, interaction, document or fact; the ring flows round it over a very light navy pulse. Control: one control on a record, like the field Firm Pilot points at on an opportunity; the ring alone. |
| frame | "around" | "inside" | "around" | Control only. Around draws the ring 4 px outside the control; inside draws it on the control's edge, for a control in a box that clips. |
| radius | "none" | "md" | "lg" | "md" | Record only: the radius of the row or card it covers. None for a table row, md (4 px) for a workspace card, lg (8 px) for a Card. |
| className | string | — | Classes added to the root element, merged with its own. Tokens only. |
Code
What the playground shows, ready to copy.
import { Highlight } from "@leap-crm/design-system";
<Highlight active />


