Integrated the button type into the Button.jsx

This commit is contained in:
Mathias Wagner 2023-11-14 09:43:42 +01:00
parent 292fb0b5a7
commit 69f0093cb7
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -1,8 +1,8 @@
import "./styles.sass";
export const Button = ({children, onClick, size = "normal"}) => {
export const Button = ({children, onClick, size = "normal", type = "primary"}) => {
return (
<button className={"btn btn-size-" + size} onClick={onClick}>
<button className={"btn btn-size-" + size + " btn-type-" + type} onClick={onClick}>
{children}
</button>
);