diff --git a/.changeset/sour-pumas-shave.md b/.changeset/sour-pumas-shave.md
new file mode 100644
index 0000000..12fa967
--- /dev/null
+++ b/.changeset/sour-pumas-shave.md
@@ -0,0 +1,5 @@
+---
+"namesake": patch
+---
+
+Display tooltip on reset password button
diff --git a/src/components/TextField/TextField.tsx b/src/components/TextField/TextField.tsx
index 769b029..b194e21 100644
--- a/src/components/TextField/TextField.tsx
+++ b/src/components/TextField/TextField.tsx
@@ -30,16 +30,16 @@ const inputStyles = tv({
export interface TextFieldProps extends AriaTextFieldProps {
label?: string;
description?: string | React.ReactNode;
- icon?: React.ReactNode;
- rightIcon?: React.ReactNode;
+ prefix?: React.ReactNode;
+ suffix?: React.ReactNode;
errorMessage?: string | ((validation: ValidationResult) => string);
}
export function TextField({
label,
description,
- icon,
- rightIcon,
+ prefix,
+ suffix,
errorMessage,
...props
}: TextFieldProps) {
@@ -58,9 +58,9 @@ export function TextField({
>
{label && }
- {icon}
+ {prefix}
- {rightIcon}
+ {suffix}
{props.type === "password" && (
{
name="password"
type="password"
isRequired
- rightIcon={
-
+ suffix={
+
+
+ Reset password
+
}
value={password}
onChange={setPassword}