@chakra-ui/core APIs
- Text
- Heading
- Box
- Button
- Flex
- Stack
- useDisclosure
- Link
- ThemeProvider
- Spinner
- Input
- CSSReset
- IconButton
- InputGroup
- Badge
- Modal
- ModalOverlay
- ModalContent
- ModalCloseButton
- ModalBody
- theme
- List
- ListItem
- FormControl
- Icon
- Avatar
- PseudoBox
- AccordionIcon
- AccordionItem
- AccordionPanel
- ModalHeader
- ChakraProvider
- FormLabel
- FormErrorMessage
- InputRightElement
- Image
- Select
- Tooltip
- Alert
- AlertDescription
- Textarea
- InputLeftElement
- Menu
- ModalFooter
- SimpleGrid
- AccordionHeader
- AspectRatioBox
- useToast
- useColorMode
- useColorModeValue
- Drawer
- DrawerOverlay
- DrawerContent
- DrawerBody
- Accordion
- FormHelperText
- Radio
- AlertDialog
- AlertDialogBody
- AlertDialogFooter
- AlertDialogHeader
- AlertDialogContent
- AlertDialogOverlay
- CheckboxGroup
- Checkbox
- RadioButtonGroup
- MenuButton
- MenuOptionGroup
- MenuItemOption
- MenuList
- MenuItem
- Progress
- extendTheme
- DarkMode
- DrawerCloseButton
- css
- Grid
- SlideIn
- Tabs
- TabList
- Tab
- Slider
- SliderTrack
- SliderFilledTrack
- SliderThumb
- Divider
- Popover
- PopoverTrigger
- PopoverContent
- PopoverBody
- VStack
- Breadcrumb
- BreadcrumbItem
- BreadcrumbLink
- AlertIcon
- AlertTitle
- Stat
- StatLabel
- StatNumber
- StatHelpText
- StatGroup
OtherRelated APIs
@chakra-ui/core#Breadcrumb JavaScript Examples
The following examples show how to use
@chakra-ui/core#Breadcrumb.
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: breadcrumbs.js From space-rockets-challenge with MIT License | 6 votes |
export default function Breadcrumbs({ items }) {
return (
<Breadcrumb
m="6"
spacing="1"
separator={<Box size="1em" as={ChevronsRight} color="gray.300" />}
>
{items.map((item, index) => {
const isCurrentPage = items.length === index + 1;
return (
<BreadcrumbItem isCurrentPage={isCurrentPage} key={item.label}>
<BreadcrumbLink
as={!isCurrentPage ? Link : undefined}
to={!isCurrentPage ? item.to : undefined}
>
{item.label}
</BreadcrumbLink>
</BreadcrumbItem>
);
})}
</Breadcrumb>
);
}