Black Friday: 30% off Pro

Get 30% off

Highlighter

Preview

Read the part that matters.

Customize

Duration0.50s
Color
Text size48px

Installation

npx shadcn@latest add https://uibrik.com/r/highlighter.json
Adds the files to components/uibrik/highlighter and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/highlighter.

Usage

import { Highlighter } from "@/components/uibrik/highlighter/highlighter";​<Highlighter  play={0}  text="Read the"  highlight="part that matters"  duration={0.5}  color=""/>

Where to use Highlighter

  • Key phrases in headlines

    A marker sweeping across two or three words tells visitors what matters most.

  • Blog posts and docs

    Highlighting a term as it scrolls into view guides readers to the main point.

    Pairs with Scroll to Highlight

  • Pricing callouts

    Marking "free for 14 days" or a discount draws the eye without a badge.

Props

Highlighter
text
Type string
"Read the"
Text before the highlighted phrase.
highlight
Type string
"part that matters"
The phrase the marker sweeps behind.
duration
Type number
0.5
Time for the marker to sweep across.
color
Type string
""
Marker colour. Empty follows the theme.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.