Components
Mark

Mark

The Mark component allows you to highlight specific parts of text for emphasis.

Import

 import {VKMark} from "@vivakits/react-components"; 

Usage

Highlight specific strings within a paragraph using the Mark component.

From the entire paragraph user can mark string as per requirments

Variant

You can choose from various variants to style your marked text in different ways.

The Cat silently watched outside the window.

The Dog silently watched outside the window.

The Bird silently watched outside the window.

Color

You have the flexibility to choose a color for the Mark component to align with your design needs.

You can emphasize text using the primary color with a solid background.

The secondary color can be used to highlight important information with text style.

For a successful highlight, try the success color with no background.

If you need to indicate a danger, use the danger color with a solid background.

For a cautionary highlight, use the warning color with text style.

Highlight your text with the dark color for emphasis and no background.

Make the text stand out with the light color, using a solid background.

API Reference

AttributeTypeDescriptionDefault
childrenReactNodeDisplay a part of content -
variantSolidTextPlainFor choosing different variantsolid
colorprimarysecondarysuccessdangerwarningdarklightChanges highlighted content background colorprimary
classNamestringAdditional CSS applied to mark components -