Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i add flowbite-datepicker in nuxt3 #19

Open
truong-ne opened this issue Aug 2, 2023 · 2 comments
Open

How can i add flowbite-datepicker in nuxt3 #19

truong-ne opened this issue Aug 2, 2023 · 2 comments

Comments

@truong-ne
Copy link

https://flowbite.com/docs/plugins/datepicker

i try add flowbite-datepicker to package then use them in my test.vue but didn't work please helpme

    <div class="relative max-w-sm">
        <div class="absolute inset-y-0 left-0 flex items-center pl-3.5 pointer-events-none">
            <svg class="w-4 h-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
                fill="currentColor" viewBox="0 0 20 20">
                <path
                    d="M20 4a2 2 0 0 0-2-2h-2V1a1 1 0 0 0-2 0v1h-3V1a1 1 0 0 0-2 0v1H6V1a1 1 0 0 0-2 0v1H2a2 2 0 0 0-2 2v2h20V4ZM0 18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8H0v10Zm5-8h10a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z" />
            </svg>
        </div>
        <input datepicker type="text"
            class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
            placeholder="Select date">
    </div>
</template>

<script setup>
useHead(() => ({
    link: [
        {
            href: 'https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.8.0/datepicker.min.js  '
        }
    ]
}))
</script>```
@truong-ne
Copy link
Author

"vue": "^3.3.4",
"flowbite": "^1.7.0",
"flowbite-datepicker": "^1.2.2",
"nuxt": "^3.6.2"

@mo9a7i
Copy link

mo9a7i commented Oct 22, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants