Skip to main content

SearchComponent

Home > @anocca/sequence-viewer-react-shared > SearchComponent

Search component that can be passed to the circular controller.

See: SearchResult

Signature:

export declare type SearchComponent = ({ sequence, zoomOnResult, onSearchResults, spinOnResult, isProtein }: {
sequence: string;
zoomOnResult: (range: SearchResult) => void;
spinOnResult: (range: SearchResult) => void;
onSearchResults: (results: SearchResult[]) => void;
isProtein: boolean;
}) => JSX.Element;

References: SearchResult