buttons
This commit is contained in:
parent
abd7c2f073
commit
384da1e832
18 changed files with 150 additions and 116 deletions
21
src/components/buttons/AnchorButton.tsx
Normal file
21
src/components/buttons/AnchorButton.tsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { PropsWithChildren } from 'react'
|
||||
|
||||
interface PrimaryLinkButtonProps {
|
||||
href: string
|
||||
className?: string
|
||||
secondary?: boolean
|
||||
}
|
||||
|
||||
export default function AnchorButton({
|
||||
href,
|
||||
className: extraClasses = '',
|
||||
children,
|
||||
secondary = false,
|
||||
}: PropsWithChildren<PrimaryLinkButtonProps>) {
|
||||
const klass = secondary ? 'secondary-button' : 'primary-button'
|
||||
return (
|
||||
<a href={href} className={`${klass} text-center ${extraClasses}`}>
|
||||
{children}
|
||||
</a>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue