Files
website-astro-stefanimhoff.de/src/components/ColorStack.tsx
2023-06-08 12:15:34 +02:00

17 lines
380 B
TypeScript

import type { ComponentChild, FunctionalComponent } from 'preact';
interface Props {
children: ComponentChild;
}
export const ColorStack: FunctionalComponent<Props> = ({ children, ...props }) => {
return (
<article
class="col-start-1 col-end-17 grid grid-cols-[repeat(auto-fill,_minmax(150px,_1fr))] gap-[20px] mbe-10"
{...props}
>
{children}
</article>
);
};