refactor(ui): extract reusable component package
This commit is contained in:
parent
87261b5a3f
commit
2664804e91
86 changed files with 102 additions and 85 deletions
13
packages/ui/src/components/GridFrame.tsx
Normal file
13
packages/ui/src/components/GridFrame.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue