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

Merge branch 'add-props-downbutton' into 'dev'

Add rest of the props to DownloadButton component

See merge request turris/reforis/foris-js!180
This commit is contained in:
Aleksandr Gumroian 2022-02-11 15:51:19 +01:00
commit 2bcbe0ae59

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>
);