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 => {
3030 color,
3131 outline,
3232 onClick,
33+ rel,
3334 ...otherProps
3435 } = props ;
3536
@@ -61,6 +62,7 @@ const Button = props => {
6162 name = { useLink ? undefined : name }
6263 value = { useLink ? undefined : value }
6364 className = { class_name || className }
65+ rel = { useLink ? rel : undefined }
6466 { ...omit ( [ 'n_clicks_timestamp' ] , otherProps ) }
6567 data-dash-is-loading = {
6668 ( loading_state && loading_state . is_loading ) || undefined
@@ -223,7 +225,12 @@ Button.propTypes = {
223225 * with the form data. This value is passed to the server in params when the
224226 * form is submitted.
225227 */
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
227234} ;
228235
229236export default Button ;
You can’t perform that action at this time.
0 commit comments