You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
445 B
24 lines
445 B
import React from "react"; |
|
|
|
export default function Button({ |
|
title, |
|
backgroundColor, |
|
color, |
|
border, |
|
width, |
|
bgOpacity, |
|
onClick, |
|
}) { |
|
return ( |
|
<button |
|
className={`rounded-md py-3 justify-center text-xs ${backgroundColor} ${color} ${bgOpacity}`} |
|
style={{ |
|
border: `${border.width} solid ${border.color}`, |
|
width: width, |
|
}} |
|
onClick={() => onClick()} |
|
> |
|
{title} |
|
</button> |
|
); |
|
}
|
|
|