platform-bible-react
    Preparing search index...

    Function BookChapterControl

    • BookChapterControl is a component that provides an interactive UI for selecting book chapters. It allows users to input a search query to find specific books and chapters, navigate through options with keyboard interactions, and submit selections. The component handles various interactions such as opening and closing the dropdown menu, filtering book lists based on search input, and managing highlighted selections. It also integrates with external handlers for submitting selected references and retrieving active book IDs.

      Parameters

      • props: BookChapterControlProps
        • OptionalclassName?: string

          Optional additional class name for styling

        • OptionalgetActiveBookIds?: () => string[]

          Function to retrieve active book IDs

        • handleSubmit: (scrRef: SerializedVerseRef) => void

          Function to handle the submission of selected references

        • scrRef: SerializedVerseRef

          The current scripture reference

      Returns Element