mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-26 00:21:36 +01: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:
commit
2bcbe0ae59
|
@ -21,9 +21,14 @@ DownloadButton.defaultProps = {
|
||||||
className: "btn-primary",
|
className: "btn-primary",
|
||||||
};
|
};
|
||||||
|
|
||||||
export function DownloadButton({ href, className, children }) {
|
export function DownloadButton({ href, className, children, ...props }) {
|
||||||
return (
|
return (
|
||||||
<a href={href} className={`btn ${className}`.trim()} download>
|
<a
|
||||||
|
href={href}
|
||||||
|
className={`btn ${className}`.trim()}
|
||||||
|
{...props}
|
||||||
|
download
|
||||||
|
>
|
||||||
{children}
|
{children}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user