A11yLinkButton.jsx (544B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 import React from "react"; 6 7 export function A11yLinkButton(props) { 8 // function for merging classes, if necessary 9 let className = "a11y-link-button"; 10 if (props.className) { 11 className += ` ${props.className}`; 12 } 13 return ( 14 <button type="button" {...props} className={className}> 15 {props.children} 16 </button> 17 ); 18 }