Mark
A static text-highlight wrapper that renders a styled <mark> element. Uses a warm background color for visual emphasis.
Mark vs. Highlight:
<x-wirekit::mark>wraps text the author chose to highlight — you decide where the<mark>goes.<x-wirekit::highlight>takes aqueryprop and dynamically wraps every occurrence of the query inside the slot — for search-result highlighting where matching positions are runtime-determined. Use Mark for editorial emphasis, Highlight for query/search-match rendering.
Basic Usage
This is important text that should stand out.
Multiple Highlights
We support Laravel, Livewire, and Tailwind CSS.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
scope |
string|null | null |
Scoped personalization name |
Keyboard Interaction
This component is purely presentational and does not respond to keyboard input.
Design Tokens
| Token | Used for |
|---|---|
--color-wk-warning-bg |
Highlight background (warm yellow) |
--color-wk-text |
Text color |
--radius-wk-sm |
Border radius |