Skip to content

Commit

Permalink
docs(Button.types): update loading prop description to clarify button…
Browse files Browse the repository at this point in the history
… will be disabled when loading
  • Loading branch information
jintak0401 committed Dec 2, 2024
1 parent 16a1ec6 commit cda3bac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface ButtonOwnProps {
text: string

/**
* If `loading` is true, spinner will be shown, replacing the content.
* If `loading` is true, spinner will be shown, replacing the content. Also, the button will be disabled.
* @default false
*/
loading?: boolean
Expand Down
3 changes: 1 addition & 2 deletions packages/bezier-react/src/components/Button/Button.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ interface ButtonOwnProps {
text?: string

/**
* If `loading` is true, spinner will be shown, replacing the content.
* Also, the button will be disabled.
* If `loading` is true, spinner will be shown, replacing the content. Also, the button will be disabled.
* @default false
*/
loading?: boolean
Expand Down

0 comments on commit cda3bac

Please sign in to comment.