18 lines
356 B
TypeScript
18 lines
356 B
TypeScript
import './Row.sass'
|
|
// import { Switch, Match } from 'solid-js'
|
|
|
|
interface Props {
|
|
children: any
|
|
content: 'left' | 'center' | 'right' | 'split' | 'spaced' | 'even'
|
|
gap?: number
|
|
}
|
|
|
|
export default (props: Props) => {
|
|
return (
|
|
<>
|
|
<div class={props.content} style={`gap: ${props.gap}rem`}>
|
|
{props.children}
|
|
</div>
|
|
</>
|
|
)
|
|
}
|