Skip to content

How to use the plugin's js-behavior options? #434

Discussion options

You must be logged in to vote

This should be documented better, but whenever you see the [--xxxxx] format, these are intended to be CSS styles. As an example, you can do the following:

<div style="--placement: top-left;"></div>

However, assuming you are using TailwindCSS, you can use Tailwind's shorthand notation for using arbitrary CSS properties, like so:

<div class="[--placement:top-left]"></div>

The documentation uses Tailwind's shorthand notation, so whenever you see an option wrapped in [] it is likely to be applied this way. Hope it helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nicevlhjfihtqngkldl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants