Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / pass / components / Form / Field / Layout / InlineFieldBox.tsx
blob36f62c3b42283f169eedfdf0090dbdf4a56de541
1 import type { FC, PropsWithChildren, ReactNode } from 'react';
3 import clsx from '@proton/utils/clsx';
5 import './InlineFieldBox.scss';
7 type Props = PropsWithChildren & { label: ReactNode; size?: 'sm' | 'md' | 'lg' };
9 export const InlineFieldBox: FC<Props> = ({ label, children, size = 'sm' }) => (
10     <div className={clsx('pass-inline-field-box', size)}>
11         <label>{label}</label>
12         <div className="flex items-center justify-end">{children}</div>
13     </div>