ISearchBoxInstanceProps

This component is used to render a search box.

interface ISearchBoxInstanceProps {
    focusInput: () => void,
    getInputElement: () => React.MutableRefObject<HTMLInputElement>
}

Usage

import {ISearchBoxInstanceProps} from 'uxp/components';

Examples

<SearchBox
     value={inputValue}
     onChange={(newValue) => { setInputValue(newValue) }}
 />
<SearchBox
     value={inputValue}
     onChange={(newValue) => { setInputValue(newValue) }}
     collapsed
     position="right"
 />

Last updated