KPDropdown
A Composable function to render a dropdown UI component.
Parameters
Style configuration for the Dropdown. It should implement the DropdownStyle interface. This parameter determines the appearance of the dropdown, including the shape of the outer frame, the visibility of the label, and other style properties. For example, the styles defined within KPDropdownStyle represent the customized dropdown styles.
The currently selected value in the dropdown.
Modifier to apply to the Dropdown.
The label text to display above the dropdown.
Optional placeholder text displayed when the dropdown is not selected.
The error message to display below the dropdown when an error occurs.
Indicates whether the dropdown is in an error state.
Determines if the dropdown is enabled for interaction.
The colors configuration for the dropdown. This parameter allows configuring the colors of the dropdown component, including the text color, background color, and colors for different states (such as selected, focused, disabled, etc.). TextFieldColors provides the means to customize these colors according to the desired visual appearance.
Callback for when the dropdown is clicked.