Preparing search index...

    Props for the SearchBar component

    type SearchBarProps = {
        testId: string;
        searchBarClicked: boolean;
        setSearchBarClicked: React.Dispatch<React.SetStateAction<boolean>>;
        updateSearchString: (newSearchString: string) => void;
        clearRef?: React.RefObject<SearchBarHandle | null>;
    }
    Index

    Properties

    testId: string

    Unique identifier for testing and accessibility

    searchBarClicked: boolean

    Current search bar active/focused state

    setSearchBarClicked: React.Dispatch<React.SetStateAction<boolean>>

    State setter for tracking search bar focus/active state

    updateSearchString: (newSearchString: string) => void

    Callback fired when search text changes

    clearRef?: React.RefObject<SearchBarHandle | null>

    Ref for programmatic control (e.g., clearing text from parent)