File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/components/forms/SearchInput Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @cube-dev/ui-kit ' : patch
3+ ---
4+
5+ Fix typings for SearchInput to support onSubmit and onClear callbacks.
Original file line number Diff line number Diff line change 11import { forwardRef , useRef } from 'react' ;
2- import { useSearchFieldState } from 'react-stately' ;
2+ import { SearchFieldProps , useSearchFieldState } from 'react-stately' ;
33import { useSearchField } from 'react-aria' ;
44
55import {
@@ -16,7 +16,9 @@ import {
1616import { tasty } from '../../../tasty' ;
1717import { CloseIcon , SearchIcon } from '../../../icons' ;
1818
19- export interface CubeSearchInputProps extends CubeTextInputBaseProps {
19+ export interface CubeSearchInputProps
20+ extends CubeTextInputBaseProps ,
21+ SearchFieldProps {
2022 /** Whether the search input is clearable using ESC keyboard button or clear button inside the input */
2123 isClearable ?: boolean ;
2224}
You can’t perform that action at this time.
0 commit comments