blog/src/components/Figure.astro
thislight 4bd975796e
All checks were successful
Build & Depoly / Depoly blog (push) Successful in 1m52s
Move to astro
2025-04-11 21:52:23 +08:00

22 lines
367 B
Text

---
import type { HTMLAttributes } from 'astro/types'
interface Props extends HTMLAttributes<"figure">{}
const props = Astro.props
---
<figure {...props}>
<slot />
</figure>
<style>
.content figure.image {
display: flex;
flex-flow: column;
align-items: center;
gap: 8px;
margin-top: 16px;
margin-bottom: 16px;
}
</style>