We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16333b0 commit aa160b1Copy full SHA for aa160b1
src/components/navigation/NavigationButton.tsx
@@ -1,10 +1,18 @@
1
import { Button } from '@/components/ui/button'
2
3
-type NavigationButtonProps = { handleScroll: () => void; label: string }
+type NavigationButtonProps = {
4
+ handleScroll: () => void
5
+ label: string
6
+ variant: 'secondary' | 'ghost'
7
+}
8
-const NavigationButton = ({ handleScroll, label }: NavigationButtonProps) => {
9
+const NavigationButton = ({
10
+ handleScroll,
11
+ label,
12
+ variant,
13
+}: NavigationButtonProps) => {
14
return (
- <Button asChild variant="ghost" className="px-2">
15
+ <Button asChild variant={variant} className="px-2">
16
<button
17
className="text-large"
18
aria-label={`Scroll to ${label}`}
0 commit comments