A shadcn-style text highlighting utility built with Ark UI primitives.

Ark CN keeps locale-aware formatting and RTL-aware layouts close to the component source, so docs previews stay honest.

Installation

npx shadcn@latest add @ark-cn/highlight

Usage

import { Highlight } from "@/components/ui/highlight"

Examples

Default

Ark CN keeps locale-aware formatting and RTL-aware layouts close to the component source, so docs previews stay honest.

API reference

This utility mirrors Ark UI's Highlight and applies a lightweight default mark style so highlighted matches remain visible in docs and app surfaces.

See the ARK UI documentation for the full API.