Group Hull
Durable boundary wrapper for related runtime objects sharing context or ownership. Install Group Hull from the VLLNT UI registry with the shadcn CLI.
Durable boundary wrapper for related runtime objects sharing context or ownership. Part of the utility family in VLLNT UI, it ships as a machine-readable registry entry — copy the source directly into your app with the shadcn CLI and own it, no runtime dependency on a component library.
Preview
Switch between light and dark to inspect the embedded Storybook preview.
Installation
Add Group Hull to your project with the shadcn CLI. The source lands in your codebase, ready to adapt:
pnpm dlx shadcn@latest add https://ui.vllnt.ai/r/group-hull.jsonSource
import type { ReactNode } from "react";
import { cn } from "../../lib/utils";
export type GroupHullProps = React.ComponentPropsWithoutRef<"section"> & {
description?: string;
eyebrow?: ReactNode;
title: string;
};
const GroupHull = ({
children,
className,
description,
eyebrow,
ref,
title,
...props
}: GroupHullProps & { ref?: React.Ref<HTMLElement> }) => (
<section
className={cn(
"relative flex min-h-[280px] flex-col gap-4 rounded-[2rem] border border-dashed border-border/70 bg-muted/12 p-5",
className,
)}
ref={ref}
{...props}
>
<div className="absolute inset-3 rounded-[1.5rem] border border-border/40" />
<div className="relative space-y-1">
{eyebrow ? (
<div className="text-[11px] uppercase tracking-[0.18em] text-muted-foreground">
{eyebrow}
</div>
) : null}
<h3 className="text-lg font-semibold tracking-tight text-foreground">
{title}
</h3>
{description ? (
<p className="max-w-[48ch] text-sm leading-6 text-muted-foreground">
{description}
</p>
) : null}
</div>
<div className="relative flex flex-1 flex-wrap items-start gap-4">
{children}
</div>
</section>
);
GroupHull.displayName = "GroupHull";
export { GroupHull };
Stories
Explore every variant and state in the interactive Storybook:
Preview
Switch between light and dark to inspect the embedded Storybook preview.