Skip to content

Commit

Permalink
chore: add disabled prop
Browse files Browse the repository at this point in the history
  • Loading branch information
damianricobelli committed Mar 5, 2024
1 parent a40f503 commit f4866d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/www/registry/default/ui/otp-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type AllowedInputTypes = "password" | "text" | "number" | "tel"
interface OTPInputProps
extends Pick<
React.InputHTMLAttributes<HTMLInputElement>,
"pattern" | "autoFocus" | "id" | "name"
"pattern" | "autoFocus" | "id" | "name" | "disabled"
> {
/** Value of the OTP input */
value?: string
Expand Down Expand Up @@ -238,6 +238,7 @@ export const OTPInput = ({
autoComplete="one-time-code"
maxLength={1}
size={1}
disabled={rest.disabled}
className={cn(
"text-center font-bold",
activeInput === i && "z-10",
Expand Down
3 changes: 2 additions & 1 deletion apps/www/registry/new-york/ui/otp-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type AllowedInputTypes = "password" | "text" | "number" | "tel"
interface OTPInputProps
extends Pick<
React.InputHTMLAttributes<HTMLInputElement>,
"pattern" | "autoFocus" | "id" | "name"
"pattern" | "autoFocus" | "id" | "name" | "disabled"
> {
/** Value of the OTP input */
value?: string
Expand Down Expand Up @@ -238,6 +238,7 @@ export const OTPInput = ({
autoComplete="one-time-code"
maxLength={1}
size={1}
disabled={rest.disabled}
className={cn(
"text-center font-bold",
activeInput === i && "z-10",
Expand Down

0 comments on commit f4866d5

Please sign in to comment.