v6.0.35

Mark

Highlight part of the text
Import

Usage

Use Mark to highlight part of the text with theme.colors:

Thanks for stopping by and checking out Mantine, you are awesome!
import { Mark, Text } from '@asuikit/core';
function Demo() {
return (
<Text>
Thanks for stopping by and checking out <Mark>Mantine</Mark>, you are awesome!
</Text>
);
}

It is used in other Mantine components, for example, in Highlight:

Highlight this and also that
import { Highlight } from '@asuikit/core';
function Demo() {
return <Highlight highlight={['this', 'that']}>Highlight this and also that</Highlight>;
}

Change color

Highlight this chunk of the text
Color
Shades
import { Text, Mark } from '@asuikit/core';
function Demo() {
return (
<Text>
Highlight <Mark>this chunk</Mark> of the text
</Text>
);
}

Mark component props

NameTypeDescription
color
MantineColor
Background color from theme.colors