#Basic

The pizza is very good.
<div>
  The <Highlight>pizza</Highlight> is very good.
</div>

#Longer example

Lorem ipsum dolor sit amet, consectetur.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
<div>
  <h1 class="mb-5 text-3xl">
    Lorem ipsum <Highlight>dolor</Highlight> sit amet, consectetur.
  </h1>
  <div>
    Lorem ipsum{" "}
    <Highlight>dolor sit amet</Highlight>, consectetur adipiscing elit,
    sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
    enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi
    ut aliquip ex ea commodo consequat.{" "}
    <Highlight>Duis aute irure</Highlight>{" "}
    dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
    nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt
    in culpa qui officia deserunt mollit anim id est laborum.
  </div>
</div>

#Props

children*
Required
true
Type
ComponentChild
Default
none
...rest
Required
false
Type
ComponentProps<"mark">
Default
none
Notes
See the docs for rest parameters. For Highlight, you could pass anything you normally would pass to <mark> because the return value looks something like this:
<mark
  class={className}
  {...restWithoutClass}
>
  {children}
</mark>