Package-level declarations
Find & replace for the Compose Text Editor: the FindBar UI, the FindState holder and its rememberFindState factory, the findShortcut modifier, localizable FindBarStrings, and the match highlight styles.
Types
Localizable strings for the FindBar component. Provide a custom implementation to localize the Find UI.
Highlight style for the current/active find match. Uses a semi-transparent orange background by default to distinguish from other matches.
Default highlight style for all find matches (non-current). Uses a semi-transparent yellow background by default.
State management for the Find feature.
Functions
Find all occurrences of a query string in the text editor.
Returns the index into matches of the match nearest the cursor.
Creates and remembers a FindState for the given TextEditorState.