This repository has been archived on 2024-06-14. You can view files and clone it, but cannot push or open issues or pull requests.
icynet-admin/components/common/Form/FormControl/FormControl.tsx

21 lines
401 B
TypeScript
Raw Permalink Normal View History

import conditionalClass from '../../../../lib/utils/conditional-class';
import styles from '../Form.module.scss';
export const FormControl = ({
children,
inline = false,
}: {
children: React.ReactNode;
inline?: boolean;
}) => {
return (
<div
className={[styles.control, conditionalClass(inline, styles.inline)].join(
' '
)}
>
{children}
</div>
);
};