Components
A HeroUI surface — a themeable container that provides consistent background layering for cards, panels, and overlays. Supports default, secondary, and tertiary background levels plus a transparent variant for custom backgrounds.
Loading preview...
"use client"
import { Surface } from "@/components/ui/heroui-surface"
export default function Transparent() {
return (
<div className="flex w-full items-center justify-center p-10">
<Surface
className="flex min-w-[320px] flex-col gap-3 rounded-3xl border p-6"
variant="transparent"
>
<h3 className="text-base font-semibold text-foreground">Surface Content</h3>
<p className="text-sm text-muted">
This is a transparent surface variant. It has no background, suitable for overlays and
cards with custom backgrounds.
</p>
</Surface>
</div>
)
}
Loading preview...
Loading preview...
Loading preview...