Skip to content
synccn

Highlighter

A marker stroke that draws under text when seen.

The best UI libraries are copied, not installed, so you can change every last detail.

Installation

$ pnpm dlx shadcn@latest add @synccn/highlighter

First time in this project? Connect synccn with one command.

Usage

import { Highlighter } from "@/components/ui/blur-fade";<Highlighter>copied, not installed</Highlighter>

API reference

Generated from the component's TypeScript types, so it always matches the code.

Highlighter

Animated marker highlight that draws under text when it comes into view.

  • color
    string

    Default "color-mix(in oklch, var(--warning) 55%, transparent)"

    Marker colour (any CSS colour).

  • delay
    number

    Default 200

    Milliseconds after entering view before drawing.

  • children
    React.ReactNode

    Content to render.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • Respects the reduced motion setting