• Getting Started
  • Components
  • Github
  • Go pro
energyGetting started
  • Introduction
dComponents
  • Button Components
  • Grid Components
  • Input Components
  • Layout Components
  • Toast Components
  • Widget Components
  • Alert
  • Badge
  • Breadcrumb
  • Callout
  • Card
  • Carousel
  • Charts
  • Collapse
  • CreateElement
  • DataTable
  • Dropdown
  • ElementCover
  • Embed
  • Fade
  • Form
  • Icon
  • Img
  • Jumbotron
  • Link
  • ListGroup
  • Media
  • Modal
  • Nav
  • Navbar
  • Pagination
  • Popover
  • Progress
  • Spinner
  • Switch
  • Tabs
  • Toggler
  • Tooltip

Nav

React Nav component allows to create simple navigation. Learn how to use React Nav to quickly and easily create elegant and flexible navs.


Usage

Example

  • Link
  • Link
  • Link
  • Disabled

Script


  return (
    <CNav variant="pills">
      <CNavItem>
        <CNavLink active>Link</CNavLink>
      </CNavItem>
      <CNavItem>
        <CNavLink>Link</CNavLink>
      </CNavItem>
      <CNavItem>
        <CNavLink>Link</CNavLink>
      </CNavItem>
      <CNavItem>
        <CNavLink disabled>Disabled</CNavLink>
      </CNavItem>
    </CNav>
  )
  


# Features

  • Easily customizable
  • Compatible with CDropdown component

# Nav API

NameRequiredTypeDefault Value
taganyul
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag
variant(tabs | pills)
additional variant of the nav, available variants: 'tabs', 'pills'
vertical(boolean | string)
display nav vertically
justifiedboolean
set nav items to be justified
fillboolean
set nav items to take full available width
inCardboolean
sets card header styles



NavItem


# NavItem API

NameRequiredTypeDefault Value
taganyli
main HTML tag name
classNamestring
user classes for the main HTML tag
innerRef(object | Function | string)
ref to the main tag



NavLink


# NavLink API

NameRequiredTypeDefault Value
classNamestring
user classes for the main HTML tag
innerRef(Function | string | object)
ref to the main tag
onClickFunction
on click callback function

Context

  • CTabs
  • Components
    • Usage
      • Features
      • API
    • Related
      • CNav
      • CNavItem
      • CNavLink
CoreUI © 2020 creativeLabs.core-logo