File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const Button = props => {
30
30
color,
31
31
outline,
32
32
onClick,
33
+ rel,
33
34
...otherProps
34
35
} = props ;
35
36
@@ -61,6 +62,7 @@ const Button = props => {
61
62
name = { useLink ? undefined : name }
62
63
value = { useLink ? undefined : value }
63
64
className = { class_name || className }
65
+ rel = { useLink ? rel : undefined }
64
66
{ ...omit ( [ 'n_clicks_timestamp' ] , otherProps ) }
65
67
data-dash-is-loading = {
66
68
( loading_state && loading_state . is_loading ) || undefined
@@ -223,7 +225,12 @@ Button.propTypes = {
223
225
* with the form data. This value is passed to the server in params when the
224
226
* form is submitted.
225
227
*/
226
- value : PropTypes . string
228
+ value : PropTypes . string ,
229
+
230
+ /**
231
+ * Set the rel attribute when Button is being used as a Link.
232
+ */
233
+ rel : PropTypes . string
227
234
} ;
228
235
229
236
export default Button ;
You can’t perform that action at this time.
0 commit comments