1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-06-28 20:03:59 +00:00

Add rest of the props to DownloadButton component

This commit is contained in:
Aleksandr Gumroian 2022-01-28 00:06:18 +03:00
parent b662ba5b52
commit b1ff608337
No known key found for this signature in database
GPG Key ID: 9E77849C64F0A733

View File

@ -21,9 +21,14 @@ DownloadButton.defaultProps = {
className: "btn-primary",
};
export function DownloadButton({ href, className, children }) {
export function DownloadButton({ href, className, children, ...props }) {
return (
<a href={href} className={`btn ${className}`.trim()} download>
<a
href={href}
className={`btn ${className}`.trim()}
{...props}
download
>
{children}
</a>
);