Skip to main content
WireKit
Copy for LLM

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 a query prop 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

Highlighted text

This is important text that should stand out.

Multiple Highlights

Multiple marks in text

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

Was this page helpful?

Voting requires cookies or local storage. What we store