diff --git a/src/phone-input/phone-input-wrapper.tsx b/src/phone-input/phone-input-wrapper.tsx index 8c8d538..12c742f 100644 --- a/src/phone-input/phone-input-wrapper.tsx +++ b/src/phone-input/phone-input-wrapper.tsx @@ -12,7 +12,7 @@ export function PhoneInputWrapper(props: React.HTMLAttributes) { setDialogPosition, setPhoneInputRef, } = usePhoneInput(); - const { className } = props; + const { className, style } = props; useLayoutEffect(() => { if (phoneInputRef?.current) { @@ -37,6 +37,7 @@ export function PhoneInputWrapper(props: React.HTMLAttributes) { }} style={{ ...(!isPortal ? { position: 'relative' } : {}), + ...style, }} /> );