diff --git a/bciers/libs/components/src/form/widgets/CheckboxWidget.tsx b/bciers/libs/components/src/form/widgets/CheckboxWidget.tsx index 6a78476141..2517ad0693 100644 --- a/bciers/libs/components/src/form/widgets/CheckboxWidget.tsx +++ b/bciers/libs/components/src/form/widgets/CheckboxWidget.tsx @@ -9,7 +9,10 @@ const CheckboxWidget: React.FC = ({ label, value, required, + uiSchema, }) => { + const alignment = uiSchema?.["ui:options"]?.alignment || "center"; + return ( = ({ onChange={(event: { target: { checked: any } }) => onChange(event.target.checked) } + sx={{ + ...(alignment === "top" && { paddingTop: "2px" }), + }} /> } label={label} + style={{ + alignItems: alignment === "top" ? "flex-start" : "center", + }} /> ); };