File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
packages/react/src/Button Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 95
95
"type" : " React.ElementType" ,
96
96
"defaultValue" : " 'button'"
97
97
},
98
+ {
99
+ "name" : " href" ,
100
+ "type" : " string" ,
101
+ "description" : " **May only be used when `as` is set to 'a'**.\n The URL the button links to. If `as` is set to 'a', this prop is required."
102
+ },
98
103
{
99
104
"name" : " block" ,
100
105
"type" : " boolean" ,
190
195
"element" : " button" ,
191
196
"url" : " https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attributes"
192
197
}
193
- }
198
+ }
Original file line number Diff line number Diff line change 62
62
"required" : true ,
63
63
"description" : " This will be the Button description."
64
64
},
65
+ {
66
+ "name" : " as" ,
67
+ "type" : " React.ElementType" ,
68
+ "defaultValue" : " 'button'"
69
+ },
70
+ {
71
+ "name" : " href" ,
72
+ "type" : " string" ,
73
+ "description" : " **May only be used when `as` is set to 'a'**.\n The URL the button links to. If `as` is set to 'a', this prop is required."
74
+ },
65
75
{
66
76
"name" : " variant" ,
67
77
"type" : " 'default' | 'primary' | 'danger' | 'invisible' | 'link'" ,
124
134
}
125
135
],
126
136
"subcomponents" : []
127
- }
137
+ }
You can’t perform that action at this time.
0 commit comments