feat: add option for multiple photos to figure component

This commit is contained in:
Stefan Imhoff
2023-06-15 17:02:25 +02:00
parent 48a38749e6
commit 50692c38d9

View File

@@ -24,7 +24,7 @@ export const Figure: FunctionalComponent<Props> = ({
return (
<figure class={classes} {...props}>
<div>{children}</div>
<div class="flex flex-wrap gap-6 md:flex-nowrap [&_div]:flex-grow">{children}</div>
{caption && (
<figcaption class="text-center text-2 mbs-2 [text-wrap:balance]">
{caption}