switch to monorepo structure
This commit is contained in:
18
packages/web/src/components/button.tsx
Normal file
18
packages/web/src/components/button.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import clsx from "clsx"
|
||||
|
||||
function Button({
|
||||
className,
|
||||
...props
|
||||
}: React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>) {
|
||||
return (
|
||||
<button
|
||||
className={clsx(
|
||||
"px-4 font-bold border border-2 border-b-4 border-text-inherit active:bg-stone-700 active:text-stone-200 active:border-b-1 active:translate-y-0.5",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export { Button }
|
10
packages/web/src/components/link.tsx
Normal file
10
packages/web/src/components/link.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import clsx from "clsx"
|
||||
|
||||
function Link({
|
||||
className,
|
||||
...props
|
||||
}: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) {
|
||||
return <a className={clsx("underline active:bg-stone-700 active:text-stone-200", className)} {...props} />
|
||||
}
|
||||
|
||||
export { Link }
|
Reference in New Issue
Block a user