mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-11-13 17:25:34 +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",
|
||||
};
|
||||
|
||||
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