Loading component…
Loading component…
Overlapping browser windows where the highlight follows the hovered tab
import { TabOverload } from "@/components/ui/tab-overload";
export function FeatureCard() {
return (
<article style={{ maxWidth: 360 }}>
<TabOverload />
<h3>Card title</h3>
<p>Short description of the problem or step.</p>
</article>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| label | string | "Three overlapping browser windows…" | Accessible description of the illustration |
| className | string | Extra class on the root, e.g. for width or margins |
Transparent background; the whole scene fades out towards the right and bottom edge with a CSS mask, so it blends into any surface
Keeps a 3 : 2 aspect ratio and scales to the width of its container – set a width or max-width via className
The hover swap uses the CSS :has() selector; in browsers without it the front window simply stays highlighted
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"
@import "tailwindcss"; in your main CSS file.