website refactor
This commit is contained in:
20
apps/website/ui/FeatureGrid.tsx
Normal file
20
apps/website/ui/FeatureGrid.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import React, { ReactNode } from 'react';
|
||||
import { Grid } from './Grid';
|
||||
|
||||
interface FeatureGridProps {
|
||||
children: ReactNode;
|
||||
columns?: number | { base: number; md?: number; lg?: number };
|
||||
gap?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* FeatureGrid - A semantic layout for displaying features or pillars.
|
||||
* Allowed to use Grid primitive.
|
||||
*/
|
||||
export function FeatureGrid({ children, columns = { base: 1, md: 3 }, gap = 8 }: FeatureGridProps) {
|
||||
return (
|
||||
<Grid cols={columns} gap={gap}>
|
||||
{children}
|
||||
</Grid>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user