uibrik

Highlighter

Preview

Customize

Duration0.50s
Color
Text size48px

Usage

import { Highlighter } from "@/components/uibrik/highlighter/highlighter";

<Highlighter play={play} />

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.

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.