You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react/src/Button/types.ts
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -23,27 +23,28 @@ type ButtonA11yProps =
23
23
24
24
exporttypeButtonBaseProps={
25
25
/**
26
-
* Determine's the styles on a button one of 'default' | 'primary' | 'invisible' | 'danger'
26
+
* Determines the styles on a button, one of 'default' | 'primary' | 'invisible' | 'danger' | 'link'
27
27
*/
28
28
variant?: VariantType
29
29
/**
30
-
* Size of button and fontSize of text in button
30
+
* Size of the button and fontSize of the text in the button
31
31
*/
32
32
size?: Size
33
33
/**
34
-
* Avoid disabling buttons because it will make them inaccessible to users who rely on keyboard navigation. that are disabled can not be clicked, selected, or navigated through.
34
+
* Disables a button. Avoid disabling buttons because it will make them inaccessible to users
35
+
* who rely on keyboard navigation. Buttons that are disabled cannot be clicked, selected, or navigated through.
35
36
*/
36
37
disabled?: boolean
37
38
/**
38
-
* Allow button width to fill its container.
39
+
* Allow a button to fill its container horizontally
39
40
*/
40
41
block?: boolean
41
42
/**
42
-
* When true, the button is in a loading state.
43
+
* Specify whether the button is in a loading state
43
44
*/
44
45
loading?: boolean
45
46
/**
46
-
* The content to announce to screen readers when loading.
47
+
* The content to announce to screen readers when loading
47
48
*/
48
49
loadingAnnouncement?: string
49
50
/*
@@ -52,7 +53,7 @@ export type ButtonBaseProps = {
52
53
*/
53
54
inactive?: boolean
54
55
/**
55
-
* Whether the button label should wrap to multiple lines of it is longer than the button width.
56
+
* Whether the button label should wrap to multiple lines if it is longer than the button width
0 commit comments