How to use the plugin's js-behavior options? #434
Answered
by
langscot
nicevlhjfihtqngkldl
asked this question in
Q&A
|
https://preline.co/plugins/html/dropdown.html#js-behavior |
Answered by
langscot
Aug 10, 2024
Replies: 1 comment
|
This should be documented better, but whenever you see the <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 |
0 replies
Answer selected by
nicevlhjfihtqngkldl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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:However, assuming you are using TailwindCSS, you can use Tailwind's shorthand notation for using arbitrary CSS properties, like so:
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.