mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-26 00:21:36 +01:00
Add rest of the props to DownloadButton component
This commit is contained in:
parent
b662ba5b52
commit
b1ff608337
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user