• 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

Tooltip

CTooltip is directive, which display tooltip over element, built on top of tooltip.js (popper.js) library. Tooltip is triggered on hover.


Usage

Example

Hello world! A tooltip example. Hello world! A right-end tooltip example.

Script


  return (
    <>
      <CTooltip content="Tooltip text">
        <a href="#"> Hello world! A tooltip example. </a>
      </CTooltip>
      <CTooltip content="Tooltip text" placement="right-end">
        <a href="#"> Hello world! A right-end tooltip example. </a>
      </CTooltip>
    </>
  )
  


# Features

  • Simplified implementation of tooltip
  • Bootstrap tooltip styling

# Tooltip API

NameRequiredTypeDefault Value
childrenany
children components
content(string | any)
tooltip content
interactivebooleanfalse
interactive Tippy.js mode
placement(top-end | top | top-start | bottom-end | bottom | bottom-start | right-start | right | right-end | left-start | left | left-end)top
the placement of tooltip
triggerstringmouseenter focus
type of trigger
advancedOptionsobject{}
advanced Tippy.js options

  • Components
    • Usage
      • Features
      • API
CoreUI © 2020 creativeLabs.core-logo