@majoo-ui/react 1.55.16 → 1.55.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CSS } from '../../../../config/stitches.config';
|
|
3
|
+
interface InputComboboxProps extends Partial<Omit<React.ComponentPropsWithoutRef<'input'>, 'size'>> {
|
|
4
|
+
/**
|
|
5
|
+
* Array of options.
|
|
6
|
+
*/
|
|
7
|
+
options: string[];
|
|
8
|
+
/**
|
|
9
|
+
* If true, the search icon is shown.
|
|
10
|
+
*/
|
|
11
|
+
showLeadingIcon?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Specify the default value.
|
|
14
|
+
*/
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
/**
|
|
17
|
+
* If true, the component is disabled.
|
|
18
|
+
*/
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Specify the input placeholder.
|
|
22
|
+
*/
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Specify the options view placement.
|
|
26
|
+
*/
|
|
27
|
+
placement?: 'top' | 'bottom';
|
|
28
|
+
/**
|
|
29
|
+
* Specify the input size.
|
|
30
|
+
*/
|
|
31
|
+
size?: 'sm' | 'lg';
|
|
32
|
+
/**
|
|
33
|
+
* If true, the input will become invalid state.
|
|
34
|
+
*/
|
|
35
|
+
isInvalid?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Called whenever the input value changes.
|
|
38
|
+
*/
|
|
39
|
+
onValueChange?: (value: string) => void;
|
|
40
|
+
css?: CSS;
|
|
41
|
+
}
|
|
42
|
+
export declare const InputCombobox: React.ForwardRefExoticComponent<InputComboboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
43
|
+
export {};
|