Merged in feat/card-grid-ui (pull request #332)
Feat/card grid ui Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import styles from "./stackable.module.css"
|
||||
import { StackableGridProps } from "./stackable"
|
||||
import { stackableGridVariants } from "./variants"
|
||||
|
||||
export default function Stackable({ children }: React.PropsWithChildren) {
|
||||
return <section className={styles.container}>{children}</section>
|
||||
export default function Stackable({
|
||||
children,
|
||||
className,
|
||||
columns,
|
||||
}: React.PropsWithChildren<StackableGridProps>) {
|
||||
const classNames = stackableGridVariants({ className, columns })
|
||||
return <section className={classNames}>{children}</section>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user