hello i am newbe to nextjs, i am using tailwind/flowbite in project, i just copy and pasted flowbite search input with dropdown code from https://flowbite.com/docs/forms/search-input/, dropdown is not working.
i have configured tailwind css and flowbite library as per documention.
tailwind.config file
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./app/**/*.{js,ts,jsx,tsx}',
"./node_modules/flowbite/**/*.tsx"
],
theme: {
screens: {
'xs': '350px',
// ...defaultTheme.screens,
'sm': '640px',
// => @media (min-width: 640px) { ... }
'md': '768px',
// => @media (min-width: 768px) { ... }
'lg': '1024px',
// => @media (min-width: 1024px) { ... }
},
colors:{
primary:{
100: "#f6931d"
},
secondary:{
100: "#fff"
},
gray:{
100:"#C0C0C0"
},
black:{
100: "#000000"
},
white:{
100:"#ffffff"
},
light:{
100: "#E8E8E8"
},
dark:{
100: "#B0B0B0"
},
orange: {
DEFAULT: 'hsl(26, 100%, 55%)',
pale: 'hsl(25, 100%, 94%)',
},
blue: {
'very-dark': 'hsl(220, 13%, 13%)',
'dark-grayish': 'hsl(219, 9%, 45%)',
grayish: 'hsl(220, 14%, 75%)',
'light-grayish': 'hsl(223, 64%, 98%)',
},
white: {
DEFAULT: 'hsl(0, 0%, 100%)',
},
black: {
DEFAULT: 'hsl(0, 0%, 0%)',
},
},
extend: {
fontFamily: {
poppins: ["Poppins", "sans-serif"],
roboto: ["Roboto", "sans-serif"],
},
},
},
plugins: [
require('flowbite/plugin')
],
}
_app.tsx file
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import Layout from '../components/Layout'
import 'flowbite'
import { ThemeProvider } from 'next-themes'
const MyApp = ({ Component, pageProps}: AppProps) => {
return (
<>
<ThemeProvider attribute='class'>
<Layout>
<Component {...pageProps} />
</Layout>
</ThemeProvider>
</>
)
}
export default MyApp
global.css
@tailwind base;
@tailwind components;
@tailwind utilities;