16 lines
539 B
TypeScript
16 lines
539 B
TypeScript
export function IamSectionCard(props: {
|
|
title: string;
|
|
description?: string;
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<div className="box-border flex min-h-0 w-full flex-1 flex-col rounded-lg border border-neutral-200 bg-white p-3 shadow-sm">
|
|
<h1 className="text-lg font-medium text-neutral-900">{props.title}</h1>
|
|
{props.description ? (
|
|
<p className="mt-1 text-sm text-neutral-500">{props.description}</p>
|
|
) : null}
|
|
<div className="mt-4 min-h-0 flex-1">{props.children}</div>
|
|
</div>
|
|
);
|
|
}
|