Skip to content

Commit

Permalink
Button: disable option added
Browse files Browse the repository at this point in the history
  • Loading branch information
nirnejak committed May 15, 2024
1 parent 6caf902 commit d5aae58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/atoms/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ interface Props {
children: React.ReactNode
type?: "reset" | "button" | "submit"
className?: string
disabled?: boolean
isBlock?: boolean
onClick?: () => void
}
Expand All @@ -42,6 +43,7 @@ const Button: React.FC<Props> = ({
type = "button",
className,
onClick,
disabled,
isBlock = false,
...props
}) => {
Expand All @@ -68,6 +70,7 @@ const Button: React.FC<Props> = ({
isBlock && "block",
className
)}
disabled={disabled}
{...props}
>
{children}
Expand Down

0 comments on commit d5aae58

Please sign in to comment.