Hinode logo
  • About 
  • Docs 
  • Components 
  • Guides 
  • Releases 
  •  
Docs
  • Getting Started
    • Introduction
    • Commands
    • Hosting and Deployment
    • Upgrading
    • Private Modules and Packages
    • Contribute
    • Troubleshooting
  • Content
    • Content Management
    • Content Organization
    • Typography
    • Links and Cross-References
    • Images and Figures
    • Tables
    • Icons
  • Configuration
    • Layout
    • Colors
    • Color Modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Cookie Consent
    • Digital Asset Managers
  • Components
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Args
    • Badge
    • Breadcrumb
    • Button
    • Button Group
    • Card
    • Card Group
    • Carousel
    • Collapse
    • Command Prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Ins
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and Tabs
    • Persona
    • Release
    • Spinner
    • Sub
    • Sup
    • Table
    • Timeline
    • Toast
    • Tooltip
    • Video
  • Advanced Settings
    • Overview
    • Styles
    • Scripts
    • Icons
    • Partial Development
    • Module Development
    • Server Headers
    • Server-Side Redirection
  • About
    • Credits
    • License
  • Getting Started
    • Introduction
    • Commands
    • Hosting and Deployment
    • Upgrading
    • Private Modules and Packages
    • Contribute
    • Troubleshooting
  • Content
    • Content Management
    • Content Organization
    • Typography
    • Links and Cross-References
    • Images and Figures
    • Tables
    • Icons
  • Configuration
    • Layout
    • Colors
    • Color Modes
    • Fonts
    • Languages
    • Navigation
    • Documentation
    • Analytics
    • Modules
    • Cookie Consent
    • Digital Asset Managers
  • Components
    • Abbr
    • Accordion
    • Alert
    • Animation
    • Args
    • Badge
    • Breadcrumb
    • Button
    • Button Group
    • Card
    • Card Group
    • Carousel
    • Collapse
    • Command Prompt
    • Docs
    • Example
    • File
    • Icon
    • Image
    • Ins
    • Kbd
    • Link
    • Map
    • Mark
    • Navbar
    • Navs and Tabs
    • Persona
    • Release
    • Spinner
    • Sub
    • Sup
    • Table
    • Timeline
    • Toast
    • Tooltip
    • Video
  • Advanced Settings
    • Overview
    • Styles
    • Scripts
    • Icons
    • Partial Development
    • Module Development
    • Server Headers
    • Server-Side Redirection
  • About
    • Credits
    • License

Tooltip

Share via
Hinode
Link copied to clipboard

Use the tooltip shortcode to display a tooltip for a hyperlink.

On this page
Overview   Arguments   Examples   Colored Tooltip   Placement  

Overview  

Use the tooltip shortcode to display a tooltip for a hyperlink. Refer to the Button on how to display a tooltip for a button instead. The inner content is used as hyperlink text. As an example, the following shortcode displays a tooltip for a colored hyperlink.

Tooltip demonstration  
markdown
{{< tooltip color="info" title="Tooltip" href="#!" >}}
    Tooltip demonstration
{{< /tooltip >}}

Arguments  

The shortcode supports the following arguments:

Name Type Required Default Comment
class string Class attribute of the tooltip’s button element.
color select dark Theme color of the element. Supported values: [primary, secondary, success, danger, warning, info, light, dark].
href url Address for the button or hyperlink.
placement select top Position of the tooltip. Supported values: [top, bottom, left, right].
spacing bool true Flag to add spacing to the inline tooltip.
title string Plain text to display in the tooltip.
Name Type Required Default
class string
Class attribute of the tooltip’s button element.
color select dark
Theme color of the element. Supported values: [primary, secondary, success, danger, warning, info, light, dark].
href url
Address for the button or hyperlink.
placement select top
Position of the tooltip. Supported values: [top, bottom, left, right].
spacing bool true
Flag to add spacing to the inline tooltip.
title string
Plain text to display in the tooltip.

Examples  

Change the style of your tooltip with shortcode arguments.

Colored Tooltip  

Set color to adjust the color of the text element to which the tooltip is applied. As an example, the following shortcodes display a tooltip for each available color.

Primary  
•
Secondary  
Secondary  
•
Success  
•
Danger  
•
Warning  
•
Info  
•
Light  
•
Dark  
Dark  
markdown
{{< tooltip color="primary" title="Tooltip" href="#!" >}}Primary{{< /tooltip >}}&bull;
{{< tooltip color="secondary" title="Tooltip" class="d-none-dark" href="#!" >}}Secondary{{< /tooltip >}}
{{< tooltip color="secondary" title="Tooltip" class="d-none-light bg-light" href="#!" >}}Secondary{{< /tooltip >}}&bull;
{{< tooltip color="success" title="Tooltip" href="#!" >}}Success{{< /tooltip >}}&bull;
{{< tooltip color="danger" title="Tooltip" href="#!" >}}Danger{{< /tooltip >}}&bull;
{{< tooltip color="warning" title="Tooltip" href="#!" >}}Warning{{< /tooltip >}}&bull;
{{< tooltip color="info" title="Tooltip" href="#!" >}}Info{{< /tooltip >}}&bull;
{{< tooltip color="light" title="Tooltip" class="bg-dark" href="#!" >}}Light{{< /tooltip >}}&bull;
{{< tooltip color="dark" title="Tooltip" class="d-none-dark" href="#!" >}}Dark{{< /tooltip >}}
{{< tooltip color="dark" title="Tooltip" class="d-none-light bg-light" href="#!" >}}Dark{{< /tooltip >}}

Placement  

Set placement to adjust the placement of the tooltip.

Top  
•
Bottom  
•
Left  
•
Right  
markdown
{{< tooltip title="Tooltip" href="#!" placement="top" >}}Top{{< /tooltip >}}&bull;
{{< tooltip title="Tooltip" href="#!" placement="bottom" >}}Bottom{{< /tooltip >}}&bull;
{{< tooltip title="Tooltip" href="#!" placement="left" >}}Left{{< /tooltip >}}&bull;
{{< tooltip title="Tooltip" href="#!" placement="right" >}}Right{{< /tooltip >}}
• Update to Hinode v0.27.13 (b6f5054)
On this page:
Overview   Arguments   Examples   Colored Tooltip   Placement  
Tooltip
Tooltip
Hinode is a clean documentation and blog theme for your Hugo site based on Bootstrap 5.
Code licensed MIT, docs CC BY-NC 4.0
Currently v0.29.3
Privacy | Cookies
 
Links
Home 
About 
Docs 
Components 
Releases 
Guides
Getting Started 
Developing Modules 
Optimization 
Versioning 
Community
Issues   
Discussions   
Contribute 
Hinode
Code copied to clipboard