dh_demo

DreamHanks demo project
git clone git://git.lair.cx/dh_demo
Log | Files | Refs | README

Fields.tsx (465B)


      1 import classNames from '@/lib/classnames'
      2 import { ReactNode } from 'react'
      3 import styles from './Field.module.css'
      4 
      5 export interface FormProps {
      6   children: ReactNode
      7   horizontal?: boolean
      8 }
      9 
     10 export default function Fields (props: FormProps) {
     11   return (
     12     <div
     13       {...classNames(
     14         styles['fields-wrapper'],
     15         props.horizontal === true
     16           ? styles['is-horizontal']
     17           : null,
     18       )}
     19     >
     20       {props.children}
     21     </div>
     22   )
     23 }