pdfrx_web
    Preparing search index...

    Function PdfToolbar

    • A ready-made toolbar: sidebar toggle, page indicator, zoom and fit controls, search field, print button, plus whatever you pass as children.

      Each piece is also exported on its own (PdfPageIndicator, PdfZoomControls, PdfSearchBox, PdfPrintButton) if you would rather lay them out yourself.

      On a narrow (phone) screen the zoom controls are hidden and the inline search field is replaced by a search button; tapping it reveals the search field in a second row below the bar. This is purely responsive — on a wide screen the zoom controls and search field are shown inline.

      Parameters

      • __namedParameters: PdfToolbarProps

        The destructured component props or operation options.

      Returns ReactNode

      The resulting ReactNode.

      <PdfToolbar showSidebarToggle onToggleSidebar={() => setOpen((o) => !o)}>
      <button onClick={download}>Download</button>
      </PdfToolbar>