Updated
This commit is contained in:
parent
6fb5145b16
commit
bb58c17286
24 changed files with 129 additions and 57 deletions
|
|
@ -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>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue