platform-bible-react
    Preparing search index...

    Function SearchBar

    • A search bar component with a search icon and a clear button when the search query is not empty.

      Parameters

      • props: SearchBarProps

        The props for the component.

        Props for the SearchBar component.

        • OptionalclassName?: string

          Additional css classes to help with unique styling of the search bar

        • OptionalisFullWidth?: boolean

          Optional boolean to set the input base to full width

        • onSearch: (searchQuery: string) => void

          Callback fired to handle the search query is updated

        • Optionalplaceholder?: string

          Optional string that appears in the search bar without a search string

        • value: string

          Seach query for the search bar

      Returns Element