UNPKG

@b1dr/xip-ui

Version:

A UI library for SolidJS with Themescura

14 lines (13 loc) 462 B
import { mergeProps, splitProps } from 'solid-js'; import styles from './style.module.css'; /** * Stack in vertical direction * Add a stack-split-child from 'stack.module.css' to the children to separate into top and bottom' */ export const Stack = (props) => { const [local, rest] = splitProps(props, ['class']); const newProps = mergeProps({ class: `${styles.stack} ${local.class ?? ''}`, }, rest); return (<div {...newProps}/>); };