13 lines
360 B
TypeScript
13 lines
360 B
TypeScript
import { stackableGridVariants } from "./variants"
|
|
|
|
import type { StackableGridProps } from "./stackable"
|
|
|
|
export default function Stackable({
|
|
children,
|
|
className,
|
|
columns,
|
|
}: React.PropsWithChildren<StackableGridProps>) {
|
|
const classNames = stackableGridVariants({ className, columns })
|
|
return <section className={classNames}>{children}</section>
|
|
}
|