'use client' import { useState, useRef, useEffect } from 'react' import { Transition } from '@headlessui/react' import Image from 'next/image' import FeaturesBg from '@/public/images/features-bg.png' import FeaturesElement from '@/public/images/features-element.png' export default function Features() { const [tab, setTab] = useState(1) const tabs = useRef(null) const heightFix = () => { if (tabs.current && tabs.current.parentElement) tabs.current.parentElement.style.height = `${tabs.current.clientHeight}px` } useEffect(() => { heightFix() }, []) return (
{/* Section background (needs .relative class on parent and next sibling elements) */}
{/* Section header */}

Explore the solutions

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat.

{/* Section content */}
{/* Content */}

Powerful suite of tools

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa.

{/* Tabs buttons */}
{/* Tabs items */}
{/* Item 1 */} heightFix()} unmount={false} >
Features bg Element
{/* Item 2 */} heightFix()} unmount={false} >
Features bg Element
{/* Item 3 */} heightFix()} unmount={false} >
Features bg Element
) }