<input type="text" placeholder="Start date" class="px-2 py-1 text-sm rounded text-gray-800" x-init="new Pikaday({ field: $el })" x-on:change="$wire.startDate = formatDateToYYYYMMDD(new Date($el.value))" />
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter