Skip to Content
🎉 Coral x Panda has been released 🎉 Read the Migration Guide

PageNavigationSubItem

PageNavigationSubItem is a sub-component meant for use inside the PageNavigation molecule.

Basic Usage

import { PageNavigation, PageNavigationGroup, PageNavigationSubItems, PageNavigationSubItem } from '@krakentech/coral-molecules'; <PageNavigation> <PageNavigationGroup defaultOpen={true}> <PageNavigationSubItems> <PageNavigationSubItem>Sub navigation item</PageNavigationSubItem> </PageNavigationSubItems> </PageNavigationGroup> </PageNavigation>

Full API

NameTypeDefault
isActiveboolean

If true, the sub-item will be highlighted as active.

false
childrenReact.ReactNode
hrefstring

Supply an href to turn this button into a semantic anchor element, for links and routing.

tostring

The URL to navigate to when the button is clicked, if it is an anchor element, used with React Router.

Last updated on