diff --git a/lib/src/components/create-password-field/CreatePasswordField.tsx b/lib/src/components/create-password-field/CreatePasswordField.tsx index 4bb52dc91..b4ed0334e 100644 --- a/lib/src/components/create-password-field/CreatePasswordField.tsx +++ b/lib/src/components/create-password-field/CreatePasswordField.tsx @@ -11,11 +11,13 @@ import { Flex } from '../flex' import { InlineMessage } from '../inline-message' import { PasswordField } from '../password-field' import { PasswordInput } from '../password-input' +import { Override } from '~/utilities' type ValidationResult = Record -type CreatePasswordFieldProps = React.ComponentProps & - Omit & { +type CreatePasswordFieldProps = Override< + React.ComponentProps & FieldElementWrapperProps, + { label?: string name?: string validate: ( @@ -24,6 +26,7 @@ type CreatePasswordFieldProps = React.ComponentProps & defaultValidation: ValidationResult messageDirection?: CSS['flexDirection'] } +> export const CreatePasswordField = ({ validate,