Single term

Davaux is a SSR-first JSX framework for building web applications.

<Highlight highlight="Davaux">
  Davaux is a SSR-first JSX framework for building web applications.
</Highlight>

Multiple terms

Davaux features SSR-first rendering, file-based routing, and reactive signals.

<Highlight highlight={['SSR', 'routing', 'signals']}>
  Davaux features SSR-first rendering, file-based routing, and reactive signals.
</Highlight>

Custom color

Davaux is a SSR-first framework with file-based routing.

Davaux is a SSR-first framework with file-based routing.

Davaux is a SSR-first framework with file-based routing.

<Highlight highlight="framework" color="blue">
  Davaux is a SSR-first framework with file-based routing.
</Highlight>

As a different element

This is a heading with highlighted text

<Highlight highlight="heading" component="h3">
  This is a heading with highlighted text
</Highlight>

Props

PropTypeDefaultDescription
highlightstring|string[]Substrings to find and highlight (required)
colorstringBackground color applied to matched substrings
componentstring'p'HTML wrapper element tag
classstringAdditional CSS class names
styleobjectInline styles
childrenstringPlain text to render with highlights (required)