jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
39 lines (38 loc) • 1.03 kB
TypeScript
/**
* @file index.tsx
*
* @fileoverview Renders a search box for the search pages (jobs / companies / resumes).
*/
import React, { Component } from 'react';
interface SearchBoxProps {
/**
* Submit handler for the search box.
*/
onSubmit: (value: string) => void;
}
interface State {
value: string;
}
/**
* The search box to use on search pages. Contains a fulltext search input and a
* submit button element. Can be usd on resume searches and job searches.
*/
export declare class SearchBox extends Component<SearchBoxProps, State> {
static defaultProps: {
onSubmit: any;
};
props: SearchBoxProps;
state: {
value: string;
};
/**
* Handle change event on the search input.
*/
handleChange: (event: React.SyntheticEvent<HTMLInputElement, Event>) => void;
/**
* Handle a submit event on the form.
*/
handleSubmit: (event: React.SyntheticEvent<HTMLFormElement, Event>) => void;
render(): JSX.Element;
}
export default SearchBox;