Closed mirajehossain closed 4 months ago
Code:
<Datepicker value={value} onChange={handleValueChange} showShortcuts={true} />
tailwind.config.js
module.exports = { purge: ["./pages/**/*.tsx", "./src/**/*.tsx"], darkMode: false, theme: { extend: {}, }, variants: { extend: {}, }, plugins: [require("daisyui"), require("@tailwindcss/forms")], daisyui: { themes: false, }, content: [ "./src/**/*.{js,jsx,ts,tsx}", "./node_modules/react-tailwindcss-datepicker/dist/index.esm.js", ], };
I also installed dayjs as a dependency. still, the design is broken.
react v: 17.0.2 tailwindcss v: ^3.2.6
Got the issue, it was a configuration issue in the tailwind config.
Code:
tailwind.config.js
I also installed dayjs as a dependency. still, the design is broken.
react v: 17.0.2 tailwindcss v: ^3.2.6