Mark
The highlighter: on paper a stroke of glow behind ink; on night a wash of light. For the words that matched a search, or the part of a sentence that matters.
import { Mark } from '@sypnia/ui/react'
What matched, what matters
3 tables match «ord»: orders, records, order_items.
A backup is kept for 30 days; after that it cannot be restored.
Code
import { Mark, Text } from '@sypnia/ui/react';
export default function Found() {
return (
<div className="sy-stack" style={{ '--gap': 'var(--s-2)' } as React.CSSProperties}>
<Text>3 tables match «ord»: <Mark>ord</Mark>ers, rec<Mark>ord</Mark>s, <Mark>ord</Mark>er_items.</Text>
<Text>A backup is kept for <Mark>30 days</Mark>; after that it cannot be restored.</Text>
</div>
);
} When to use it
Use it when
- The letters that matched a search.
- Three or four words that the reader must not miss.
Do not use it when
- Whole sentences: then nothing stands out.
- Saying a state: use Status or Badge.
For everyone
- It is a real
mark, and the marked words are still read in their sentence.