Код: Выделить всё
import Footer from '@/components/footer';
import Navbar from '@/components/navbar';
import '@/styles/globals.css';
import type { AppProps } from 'next/app';
import { Inter } from 'next/font/google';
import { useState } from 'react';
const inter = Inter({ subsets: ['latin'] });
export default function App({ Component, pageProps }: AppProps) {
const [active, setActive] = useState(false);
const [showSearch, setShowSearch] = useState(false);
const [searchText, setSearchText] = useState('');
const handleClick = () => {
setActive(!active);
};
const sideClick = () => {
setActive(false);
};
const searchClick = () => {
setShowSearch(!showSearch);
};
const clearSearch = () => {
setSearchText('');
};
return (
);
}
< /code>
Вот кода и ящик. < /p>
overflow-hidden
Подробнее здесь: https://stackoverflow.com/questions/757 ... ript-tailw