Rich text / foldkit-mixins-richtext

Find and replace text

findReplace<Message>() renders the search and replacement inputs, match counter (2 of 5 or No matches), and navigation/replace buttons. Keep query, replacement, current, and caseSensitive in your Model, advance current with stepMatch(current, count, step) in update, and overlay highlights using overlay(hostId, RichText.searchDecorations(...)).

SlotCapabilityRenders
rootContainerrole="search" wrapper
fieldTextInputInputs with data-find="query" or "replacement"
countContainerLive match count (aria-live)
buttonInteractiveControls keyed by data-find (previous, next, case, replace, replace-all, close)