Skip to main content

Dropdown API Overview

Initialization

<script>
import { Dropdown } from "wx-svelte-core";
</script>

<!-- minimal configuration for initialization -->
<Dropdown>
<!-- a component to put inside a dropdown -->
</Dropdown>
tip

Visit the Features Guide to learn more about the functionality of this layout element.

aligndefines the alignment of a dropdown relative to the input
autofitdefines whether a dropdown automatically fits to the width of the input
cancelsets the function that closes a dropdown
positiondefines the position of a dropdown relative to the input
widthsets the width of a dropdown