Dropdown
A trigger and a box that floats next to it — a menu, a filter, a small form. The Svelte component places the box in fixed coordinates, so no scrolling ancestor crops it, and flips it when there is no room.
| Class | Effect | Type |
|---|---|---|
.dropdown | A trigger and a box that floats next to it — a menu, a filter, a small form. The Svelte component places the box in fixed coordinates, so no scrolling ancestor crops it, and flips it when there is no room. | root |
.dropdown-center.dropdown-end | Sets align, one class per value. | axis align |
.dropdown-top.dropdown-left.dropdown-right | Sets side, one class per value. | axis side |
.dropdown-xs.dropdown-sm.dropdown-md.dropdown-lg.dropdown-xl | Sets size, one class per value. | axis size |
.dropdown-content | The floating box. | part |
.dropdown-fixed | The box is placed in fixed coordinates by a script, and only shown when open. | part |
.dropdown-open | Shows the box. Written by the component; a <details open> or focus inside does the same without a script. | part |