mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
14 lines
431 B
TypeScript
14 lines
431 B
TypeScript
import React from 'react'
|
|
|
|
export interface FormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
testId?: string
|
|
children?: React.ReactNode
|
|
row?: boolean
|
|
}
|
|
|
|
export const FormGroup: React.FC<FormGroupProps> = ({ children, row, testId, className = '', ...props }) => (
|
|
<div className={`form-group ${row ? 'form-group--row' : ''} ${className}`} role="group" data-testid={testId} {...props}>
|
|
{children}
|
|
</div>
|
|
)
|