mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-25 12:28:34 +00:00
feat(web/input): required fields
This commit is contained in:
1 parent
6c4485b570
commit
d5a9a3fb90
7 files changed
+32
-4
No files matched your search
@@ -11,7 +11,13 @@ interface Props {
|
||||
|
||||
const CheckboxField: React.FC<Props> = (props) => {
|
||||
return (
|
||||
<Checkbox {...props.register} sx={{ display: 'flex' }} label={props.row.label} defaultChecked={props.row.checked} />
|
||||
<Checkbox
|
||||
{...props.register}
|
||||
sx={{ display: 'flex' }}
|
||||
required={props.row.required}
|
||||
label={props.row.label}
|
||||
defaultChecked={props.row.checked}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user