Skip to content

Commit aa160b1

Browse files
allow either secondary or ghost button
1 parent 16333b0 commit aa160b1

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/components/navigation/NavigationButton.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
import { Button } from '@/components/ui/button'
22

3-
type NavigationButtonProps = { handleScroll: () => void; label: string }
3+
type NavigationButtonProps = {
4+
handleScroll: () => void
5+
label: string
6+
variant: 'secondary' | 'ghost'
7+
}
48

5-
const NavigationButton = ({ handleScroll, label }: NavigationButtonProps) => {
9+
const NavigationButton = ({
10+
handleScroll,
11+
label,
12+
variant,
13+
}: NavigationButtonProps) => {
614
return (
7-
<Button asChild variant="ghost" className="px-2">
15+
<Button asChild variant={variant} className="px-2">
816
<button
917
className="text-large"
1018
aria-label={`Scroll to ${label}`}

0 commit comments

Comments
 (0)