Skip to content

Instantly share code, notes, and snippets.

View Asimatasert's full-sized avatar
🎯
Focusing

Asım Atasert Asimatasert

🎯
Focusing
View GitHub Profile
@Asimatasert
Asimatasert / index.html
Created December 19, 2022 06:29 — forked from sumonst21/index.html
Select Field with Search - AlpineJs + Tailwind
<div class="flex flex-col items-center">
<div class="w-full md:w-1/2 flex flex-col items-center h-64">
<div class="w-full px-4">
<div x-data="selectConfigs()" x-init="fetchOptions()" class="flex flex-col items-center relative">
<div class="w-full">
<div @click.away="close()" class="my-2 p-1 bg-white flex border border-gray-200 rounded">
<input
x-model="filter"
x-transition:leave="transition ease-in duration-100"
x-transition:leave-start="opacity-100"