UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

39 lines (38 loc) 1.03 kB
/** * @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;