UseDropdownParameters

external interface UseDropdownParameters(source)

Properties

Link copied to clipboard
abstract var componentName: String?

The name of the component using useDropdown. For debugging purposes.

Link copied to clipboard
abstract var defaultOpen: Boolean?

If true, the dropdown is initially open.

Link copied to clipboard
abstract var onOpenChange: (event: SyntheticEvent<*, *>?, open: Boolean) -> Unit?

Callback fired when the component requests to be opened or closed.

Link copied to clipboard
abstract var open: Boolean?

Allows to control whether the dropdown is open. This is a controlled counterpart of defaultOpen.