Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 1x 5x | import React from 'react' import { Button, ButtonProps, Text } from '@chakra-ui/react' import { Link } from '@redwoodjs/router' export type NavButtonProps = { label: string to: string } & ButtonProps export const NavButton: React.FC<NavButtonProps> = ({ label, to, ...props }) => { return ( <Link to={to}> <Button {...props} justifyContent="start" w="full"> <Text>{label}</Text> </Button> </Link> ) } |