| Icon |
Element |
null |
No |
Optional icon to display in the dropdown. |
| renderValue |
string |
"" |
Yes |
The value to display as the selected item in the dropdown. |
| data |
array |
[ ] |
Yes |
The array of items to populate the dropdown with. |
| placeholder |
string |
"select" |
No |
Placeholder text to display when no item is selected. |
| titleNoOfLines |
number |
1 |
No |
Number of lines for the title text. |
| dropdownRowNoOfLines |
number |
1 |
No |
Number of lines for the text in each dropdown item. |
| titleStyles |
object |
null |
No |
Custom styles for the title container |
| titleTextStyles |
object |
null |
No |
Custom styles for the title text. |
| showTitleIcon |
boolean |
true |
No |
Whether to show an icon next to the title text. |
| onPressed |
function |
null |
Yes |
Function to handle press action on the title. |
| dropdownContainerStyles |
object |
null |
No |
Custom styles for the dropdown container. |
| dropdownContainerInnerStyles |
object |
null |
No |
Custom styles for the dropdown's inner container. |
| dropdownContainerInnerChildStyles |
object |
null |
No |
Custom styles for each item in the dropdown. |
| dropdownContainerInnerChildTextStyles |
object |
null |
No |
Custom styles for the text inside each dropdown item. |
| mainContainerStyles |
object |
null |
No |
Custom styles for the main dropdown container. |
| indicatorColor |
string |
"#1E1E55" |
No |
Color for the dropdown indicator. |
| onSelected |
function |
null |
No |
Function to handle the selection of an item from the dropdown. |
| paginationFnCall |
function |
null |
No |
Function to handle pagination (optional). |
| paginationIndex |
number |
1 |
No |
The current pagination index |
| paginationSetIndex |
function |
null |
No |
Function to update the pagination index. eg.,(setState) |
| visible |
boolean |
false |
Yes |
Controls the visibility of the dropdown |
| onRequestClose |
function |
null |
No |
Function to handle the request to close the dropdown. |
| loader |
boolean |
false |
No |
Whether to show a loader while data is being fetched. |
| showsVerticalScrollIndicator |
boolean |
true |
No |
Whether to show the vertical scroll indicator in the dropdown. |
| animationType |
AnimationType |
AnimationType.none |
No |
Controls the animation type for showing and hiding the dropdown (options: AnimationType.fade, AnimationType.slide, AnimationType.none) AnimationType is available as a Type in this package |
| visible |
boolean |
false |
No |
Controls |
| noDataContainer |
React.ReactNode |
null |
No |
Custom content to display if no data is available in the dropdown. |
| backdropStyles |
object |
null |
No |
Custom styles for the backdrop (the area behind the dropdown). |