Skip to content

feat!: add button for search #11

@optimalcharb

Description

@optimalcharb
  1. add buttons to useSearchCapability for SearchCapability. refer to the example of snippet, which creates many buttons using records whereas I want to create each button directly in react individually: https://github.com/embedpdf/embed-pdf-viewer/blob/main/snippet/src/components/app.tsx
    many need to take some functionality from be sure not to use icons from the example, use lucide icons only
    32 if needed, take some code from SearchRenderer which I have not implemented. I am trying to avoid using plugin-ui at all costs, so my EmbedPDF component can't register Renderers. But I think I should be able to get all the functionality without them. https://github.com/embedpdf/embed-pdf-viewer/blob/main/snippet/src/components/renderers.tsx
    There are no docs or examples for @embedpdf/search so refer to the source code: https://github.com/embedpdf/embed-pdf-viewer/tree/main/packages/plugin-search/src
    Also refer to the EmbedPDF React docs or toolbar.tsx for examples of using plugins: https://www.embedpdf.com/docs/react/understanding-plugins

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions