12 lines
242 B
Text
12 lines
242 B
Text
---
|
|
interface Props {
|
|
left: number
|
|
right: number
|
|
top?: number
|
|
bottom?: number
|
|
}
|
|
|
|
const { left, right, top, bottom } = Astro.props
|
|
---
|
|
|
|
<div style={{ padding: `${top || 0}rem ${right}rem ${bottom || 0}rem ${left}rem` }}><slot /></div>
|