UNPKG

@b1dr/xip-ui

Version:

A UI library for SolidJS with Themescura

11 lines (10 loc) 516 B
import { splitProps } from 'solid-js'; import styles from './style.module.css'; export const Input = (props) => { const [local, rest] = splitProps(props, ['rounded']); return (<input {...rest} class={`${styles.input} ${props.class}`} classList={{ [styles.rounded]: local.rounded }}/>); }; export const Label = (props) => (<label {...props} class={`${styles.label} ${props.class}`}/>); export const LabelText = (props) => (<div {...props} class={`${styles.label_text} ${props.class}`}/>);