This commit is contained in:
Patrick Alvin Alcala 2026-03-12 19:27:56 +08:00
parent 6fb5145b16
commit bb58c17286
24 changed files with 129 additions and 57 deletions

View file

@ -1,4 +1,5 @@
import type { JSXElement } from 'solid-js'
import '../styles/Padding.sass'
interface Props {
left: number
@ -9,5 +10,5 @@ interface Props {
}
export default (props: Props) => {
return <div style={{ padding: `${props.top || 0}rem ${props.right}rem ${props.bottom || 0}rem ${props.left}rem` }}>{props.children}</div>
return <div class='padding' style={{ padding: `${props.top || 0}rem ${props.right}rem ${props.bottom || 0}rem ${props.left}rem` }}>{props.children}</div>
}