Drop
Toggle

Drop is a toggle plugin to show complex content relative to an element node and positioned relative to it.

Styles

You can customize the default styles of this component inside tailwind.config.js setting theme.extend.xtendui.drop see css customization. Check xtendui/src/drop.css.js for default styles.

Javascript

Import the javascript file with import 'xtendui/src/drop'.

Initialize automatically within markup with [data-xt-drop="{ <options> }"].

Initialize manually within javascript with new Xt.Drop(document.querySelector('.my-container'), {/* options */}).

Usage Unique

Use this code to create a drop in unique mode.

The unique mode is useful when you want to trigger targets outside the scope.

Only when you specify elements or targets with id the query is inside document not only inside object.

Usage Multiple

Use this code to create drop in multiple mode.

Implementation

Check out drop themes for advanced implementations.