feat: some button style changes
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
@reference '../../index.scss';
|
@reference '../../index.scss';
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
@apply rounded-2xl border-2 py-3 font-semibold text-white transition-colors hover:cursor-pointer;
|
@apply rounded-2xl border-2 px-4 py-3 font-semibold text-white transition-colors hover:cursor-pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ const button = tv({
|
|||||||
|
|
||||||
interface ButtonProps {
|
interface ButtonProps {
|
||||||
color?: "primary" | "secondary";
|
color?: "primary" | "secondary";
|
||||||
onClick: () => void;
|
onClick?: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Button: FunctionComponent<ButtonProps> = ({ children, onClick, color = "primary" }) => {
|
const Button: FunctionComponent<ButtonProps> = ({ children, onClick = () => {}, color = "primary" }) => {
|
||||||
return (
|
return (
|
||||||
<button type="button" class={button({ color: color })} onClick={onClick}>
|
<button type="button" class={button({ color: color })} onClick={onClick}>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
Reference in New Issue
Block a user