|
|
|
|
|
by greenie_beans
628 days ago
|
|
this looks nice but at first glance of an example, this code is soooooo gross. <select
data-select='{
"placeholder": "Select option...",
"toggleTag": "<button type=\"button\" aria-expanded=\"false\"></button>",
"toggleClasses": "advance-select-toggle",
"dropdownClasses": "advance-select-menu",
"optionClasses": "advance-select-option selected:active",
"optionTemplate": "<div class=\"flex justify-between items-center w-full\"><span data-title></span><span class=\"icon-[tabler--check] flex-shrink-0 size-4 text-primary hidden selected:block \"></span></div>",
"extraMarkup": "<span class=\"icon-[tabler--caret-up-down] flex-shrink-0 size-4 text-base-content/90 absolute top-1/2 end-3 -translate-y-1/2 \"></span>"
}'
class="hidden"
>
https://flyonui.com/docs/advanced-forms/advanced-select/#def...i ain't doing that. nope. just give me tailwind classes in regular html so i can copy/paste. |
|
The first few examples might go smooth but I can't see this going without any problems even in some small scale apps.