Skip to documentation
Design system / Sources & standards
Current repository source
hero-layout.tsx
src/components/editorial/hero-layout.tsx
This view contains the escaped source read during the deployment build. Code and policy text are unchanged. Markdown is shown as source, not rendered as a document. A new deployment refreshes the content.
import type { ComponentProps, ReactNode } from "react";
import { cn } from "@/lib/utils";
/** Slot-only template. It never chooses copy, heading level, data or theme. */
export function HeroLayout({
content,
specimen,
actions,
className,
...props
}: Omit<ComponentProps<"div">, "children" | "content"> & {
content: ReactNode;
specimen?: ReactNode;
actions?: ReactNode;
}) {
return (
<div
{...props}
data-slot="hero-layout"
className={cn(
"grid min-w-0 gap-8 lg:grid-cols-2 lg:items-center",
specimen == null && "lg:grid-cols-1",
className,
)}
>
<div className="min-w-0 space-y-6">
{content}
{actions != null && (
<div className="flex flex-wrap gap-3">{actions}</div>
)}
</div>
{specimen != null && <div className="min-w-0">{specimen}</div>}
</div>
);
}
All sources and standards