@b1dr/xip-ui
Version:
A UI library for SolidJS with Themescura
13 lines (12 loc) • 369 B
JSX
import { mergeProps, splitProps } from 'solid-js';
import styles from './style.module.css';
/**
* Cluster in horizontal direction
*/
export const Cluster = (props) => {
const [local, rest] = splitProps(props, ['class']);
const newProps = mergeProps({
class: `${styles.cluster} ${local.class ?? ''}`
}, rest);
return (<div {...newProps}/>);
};