Mark
Highlighted text using the HTML mark element with intent variants.
Import
import { Mark } from '@oztix/roadie-components'
Examples
Default
The default intent is info.
<p> The Mark component is used to <Mark>highlight text</Mark> within content. </p>
Intents
As heading
Use render to draw Mark as a heading element. Padding automatically increases to suit display text.
With headings
Mark and Highlight can both be used inline within headings.
API reference
Mark
asElementType
DeprecatedDeprecated: Use `render` instead. `as` will be removed in v3.0.0.
renderRoadieRenderProp
Escape hatch — swap the underlying element with full control over the rendered shape (e.g. `render={<h2 />}` to highlight a heading).
classNamestring
intent"neutral" | "neutral-inverted" | "brand" | "brand-secondary" | "accent" | "danger" | "success" | "warning" | "info" | null