@chakra-ui/react APIs
- ChakraProvider
- Flex
- Box
- Button
- Text
- Heading
- Input
- Link
- Stack
- IconButton
- HStack
- Center
- FormLabel
- BoxProps
- useDisclosure
- FormControl
- Image
- extendTheme
- VStack
- PopoverContent
- PopoverTrigger
- Icon
- InputGroup
- ListItem
- Popover
- PopoverBody
- Select
- Grid
- Alert
- Modal
- ModalOverlay
- ModalContent
- ButtonGroup
- PopoverArrow
- Checkbox
- Tag
- Badge
- Tooltip
- SimpleGrid
- Textarea
- ModalBody
- useToast
- Avatar
- PopoverCloseButton
- useColorModeValue
- Menu
- MenuButton
- MenuItem
- MenuList
- Divider
- AlertIcon
- ButtonProps
- ModalHeader
- Spinner
- PopoverHeader
- FormErrorMessage
- Table
- Thead
- Tbody
- Tr
- Th
- Td
- useColorMode
- InputLeftElement
- ColorModeScript
- ModalFooter
- TabList
- Tab
- Drawer
- DrawerContent
- FlexProps
- DrawerOverlay
- DrawerBody
- Switch
- Accordion
- AccordionItem
- AccordionButton
- AccordionPanel
- AccordionIcon
- Slider
- SliderTrack
- SliderFilledTrack
- SliderThumb
- LinkProps
- ModalCloseButton
- Tabs
- TabPanels
- TabPanel
- List
- Container
- UnorderedList
- FormHelperText
- Code
- TagLabel
- Spacer
- GridItem
- DrawerHeader
- theme
- IconButtonProps
- DrawerCloseButton
- Portal
- Skeleton
- NumberInput
- NumberInputField
- NumberInputStepper
- NumberIncrementStepper
- NumberDecrementStepper
- Progress
- Radio
- AlertTitle
- InputLeftAddon
- MenuDivider
- Wrap
- chakra
- StackProps
- useClipboard
- RadioGroup
- Collapse
- AlertDescription
- InputProps
- ListIcon
- PopoverFooter
- InputRightElement
- AlertDialog
- AlertDialogOverlay
- AlertDialogBody
- AlertDialogContent
- AlertDialogFooter
- AlertDialogHeader
- TagCloseButton
- CloseButton
- CircularProgress
- WrapItem
- SlideFade
- createStandaloneToast
- localStorageManager
- Fade
- useMediaQuery
- AspectRatio
- AvatarGroup
- SelectProps
- Breadcrumb
- BreadcrumbItem
- TextProps
- useTheme
- OrderedList
- HeadingProps
- useBoolean
- TableCaption
- ColorModeProvider
- Theme
- BreadcrumbLink
- InputRightAddon
- Tfoot
- TagLeftIcon
- useBreakpointValue
- AccordionPanelProps
- UseToastOptions
- cookieStorageManager
- ContainerProps
- IconProps
- ListProps
- keyframes
- SkeletonText
- LinkBox
- LinkOverlay
- SliderMark
- useOutsideClick
- AlertDialogCloseButton
- CSSReset
- ThemeConfig
- Circle
- forwardRef
- useInterval
- useMultiStyleConfig
- StylesProvider
- CheckboxGroup
- usePrevious
- styled
- useStyles
- IToast
- ComponentStyleConfig
- BackgroundProps
- toast
- PinInput
- PinInputField
- Slide
- useUpdateEffect
- DarkMode
- LightMode
- AvatarBadge
- MenuButtonProps
- AccordionItemProps
- ListItemProps
- Img
- createIcon
- ColorMode
- ComponentWithAs
- VisuallyHidden
- Editable
- EditableInput
- EditablePreview
- DrawerFooter
- useMergeRefs
Other Related APIs
- react#ReactElement
- react-feather#Paperclip
- @chakra-ui/react#Box
- @chakra-ui/react#Text
- @chakra-ui/react#Stack
- @chakra-ui/react#ListItem
- @chakra-ui/react#useColorModeValue
- @chakra-ui/react#Link
- @chakra-ui/react#Tag
- @chakra-ui/react#HStack
- @chakra-ui/react#Badge
- @chakra-ui/react#Icon
- @chakra-ui/react#ButtonProps
- @chakra-ui/react#StackProps
- @chakra-ui/react#List
- @chakra-ui/react#ListIcon
- @chakra-ui/icons#ExternalLinkIcon
- @chakra-ui/icons#ChevronDownIcon
- react-icons/hi#HiOutlineCalendar
- react-icons/hi#HiOutlineClock
- react-icons/hi#HiUserGroup
@chakra-ui/react#LinkProps TypeScript Examples
The following examples show how to use
@chakra-ui/react#LinkProps.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: _app.tsx From graphql-mesh with MIT License | 6 votes |
LinkNewTabIfExternal = (props: LinkProps & NextLinkProps) => {
return props.href.startsWith('/') ? (
// @ts-expect-error type incompatibility
<Link {...props} color="accentColor" sx={{ '&:hover': { textDecoration: 'none' } }} />
) : (
<>
{/* @ts-expect-error type incompatibility */}
<Link {...props} isExternal={true} color="accentColor" sx={{ '&:hover': { textDecoration: 'none' } }} />{' '}
<ExternalLinkIcon />
</>
);
}
Example #2
Source File: Link.tsx From website with MIT License | 6 votes |
Link: React.FC<LinkProps> = ({ children, href }) => (
<BaseLink
href={href}
isExternal
borderBottom="1px solid"
borderBottomColor="gray.400"
backgroundColor="#a8d8fc80"
_hover={{ backgroundColor: '#a8d8fc', borderBottomColor: 'gray.800' }}
>
{children}
</BaseLink>
)
Example #3
Source File: LinkButton.tsx From website with MIT License | 6 votes |
LinkButton: React.FC<LinkProps> = ({ children, ...props }) => (
<Link
display="grid"
padding="0 16px"
height="40px"
_hover={{ backgroundColor: '#0000001a' }}
gridAutoFlow="column"
gridAutoColumns="max-content"
justifyContent="center"
alignItems="center"
width="max-content"
borderRadius="4px"
{...props}
>
<Text>{children}</Text>
<ArrowForwardIcon size="21px" ml="8px" />
</Link>
)