Updated
This commit is contained in:
parent
8197905483
commit
efc045bebd
48 changed files with 779 additions and 1140 deletions
12
@dasig/components/Padding.astro
Normal file
12
@dasig/components/Padding.astro
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue