Integrated the button type into the Button.jsx
This commit is contained in:
parent
292fb0b5a7
commit
69f0093cb7
@ -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>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user