13 lines
332 B
TypeScript
13 lines
332 B
TypeScript
import type { PropsWithChildren } from "react";
|
|
|
|
export interface GridFrameProps extends PropsWithChildren {
|
|
density?: "compact" | "dense";
|
|
}
|
|
|
|
export function GridFrame({ children, density = "dense" }: GridFrameProps) {
|
|
return (
|
|
<section className="grid-frame" data-density={density}>
|
|
{children}
|
|
</section>
|
|
);
|
|
}
|