diff --git a/components/Button.module.css b/components/Button.module.css index 2486f814..a6020fbd 100644 --- a/components/Button.module.css +++ b/components/Button.module.css @@ -8,6 +8,7 @@ outline: none; transition-duration: 0.3s; font-weight: normal; + text-align: center; } .button:hover, diff --git a/components/Button.tsx b/components/Button.tsx index 9c976b6c..e04b2df7 100644 --- a/components/Button.tsx +++ b/components/Button.tsx @@ -12,17 +12,29 @@ interface LinkProps extends AnchorHTMLAttributes { type Props = (ButtonProps | LinkProps) & { size?: "small" | "normal" }; export function Button(props: Props) { - const size = props.size ? props.size : "normal"; - return props.isLink ? ( - - ) : ( - )} diff --git a/components/playground.tsx b/components/playground.tsx index 6deb1d63..9ea55249 100644 --- a/components/playground.tsx +++ b/components/playground.tsx @@ -68,10 +68,24 @@ export function NewsCardDemo() { export function ButtonDemo() { return ( <> - - +

Standard buttons

+

+ +

+

+ +

+

Small buttons

+

+ +

+

+ +

); }