Integrated the button type into the Button.jsx
This commit is contained in:
parent
292fb0b5a7
commit
69f0093cb7
@ -1,8 +1,8 @@
|
|||||||
import "./styles.sass";
|
import "./styles.sass";
|
||||||
|
|
||||||
export const Button = ({children, onClick, size = "normal"}) => {
|
export const Button = ({children, onClick, size = "normal", type = "primary"}) => {
|
||||||
return (
|
return (
|
||||||
<button className={"btn btn-size-" + size} onClick={onClick}>
|
<button className={"btn btn-size-" + size + " btn-type-" + type} onClick={onClick}>
|
||||||
{children}
|
{children}
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user