Buma UI - DocumentationBuma UI - Documentation
Get Started
Foundations
Components
Resources
Patterns
Data Visualization
Back to BSpace
Get Started
Foundations
Components
Resources
Patterns
Data Visualization
  • stacksFoundations
    • 💡 Overview
    • Color
    • Principle
    • Typography
  • brickComponents
    • 💡 Overview
    • Accordion
    • Alert
    • Avatar
    • Badge
    • Bottom Sheet
    • Bread Crumb
    • Button
    • Button Link
    • Button Navigation
    • Calendar
    • Card
    • Chat
    • Checkbox
    • Chips
    • Choice Tile
    • Comment
    • Date Picker
    • Divider
    • Download
    • Drawer
    • Dropdown
    • Empty State
    • Floating Button
    • Form Input
    • Header
    • Hint
    • Icon
    • List Choice
    • Loading
    • Modal
    • Navigation Bar
    • Notification
    • Pagination
    • Progress Bar
    • Radio Button
    • Search
    • Scrolling Bar
    • Segmented Switch
    • Side Menu
    • Side Tab
    • Slider
    • Switch
    • Tab
    • Table
    • Text Area
    • Text Input
    • Time Picker
    • Title
    • Toast
    • Tooltip
    • Wizzard
  • splitscreenPattern
    • 💡 Overview
    • Filter
      upcoming
    • Form
      upcoming
    • Notification
    • PWA
      upcoming
    • table
      upcoming
    • Upload Download
      upcoming
  • insert_chartData Visualization
    • 💡 Overview
    • Tiering
    • Pattern
    • Chart and Graph
      • Chart Selection Guide
      • Map Selector
      • Donut Chart
      • Donut Progress Bar Chart
      • Spider Chart
      • Line Chart
      • Chart Area
      • Speedometer
      • Heat Map
      • Scatter Plot
      • Pie Chart
      • Bar Chart
      • Waterfall Chart
      • Sunburst Chart
      • Tree Decomposition Chart
      • Scorecards
      • Table
      • Micro Visualization
    • Typography
    • Color Palette
  • data_objectTokens
    upcoming
  • inventory_2Resources
    • 💡 Overview
    • Mobile
      new
      • 💡 Introduction
      • Installation
      • General
        • Important Rules
        • Naming Convention
        • Clean Architecture
    • Web
      upcoming
ComponentsTooltipsA Tooltip refers to a small, informative message that appears when a user hovers over or interacts with an element such as a button, icon, or link in a user interface.
Guidelines

Anatomy

 A small arrow that visually connects the tooltip to the trigger element.
 The text or information displayed within the tooltip container.
 A small arrow that visually connects the tooltip to the trigger element.
 Title of the information.
To close the tooltip (used for tooltips on the onboarding page).
The text or information displayed within the tooltip container.
Display the number of steps available.
Buttons for navigation inside the tooltip.
Size on Tooltip
Small
Medium
Large
VARIANTUSAGE RECOMMENDATION
SmallSmall tooltips have a compact size and are typically used to present brief and concise information. Example Usage:
  • Used to display short descriptions or explanations about icons, buttons, or other UI elements when users hover over or click on them.
  • When users hover over an icon representing a help feature, a small tooltip appears with the text "Learn More" to provide a brief description of the feature.
MediumMedium tooltips have a moderate size and are suitable for presenting information of moderate complexity, such as short descriptions or usage instructions. Example Usage:
  • Used to provide instructions or guidance on how to use a feature or function when users interact with specific UI elements.
  • On a form field for entering a password, a medium tooltip appears when users hover over a question mark icon, providing tips on creating a strong password.
LargeLarge tooltips have a bigger size and are used to present more detailed or comprehensive information. Example Usage:
  • Used to display a complete description of a feature or service when users hover over or click on the relevant element.
  • Large tooltips offer detailed explanations or descriptions, such as analytics metrics and calculations, to provide users with a thorough understanding of complex concepts.
  • Large tooltip can accommodate longer text or multiple pieces of information.
Variant on Tooltip
Icon Only Button

Buttons can have icons instead of text, or on either side of the text:

Top
Left
Right
Bottom

Example of usage:

Color

The color of a tooltip can be customized, providing designers with the flexibility to align the tooltip's appearance with the overall visual theme of the UI. This feature allows for consistent branding and aesthetic coherence throughout the user interface.

Black
Green
White

Color Usage:

  • Black: Used to convey important information or messages that require special attention from the user, especially against a light background.
  • Green: Green in tooltips is commonly used to provide positive feedback or confirmation to the user.
  • White: Used to display clear and neutral information or messages that require attention from the user, particularly against a dark background.


Usage

Usage Recommendation:

  • Tooltips are used to provide additional explanations for specific content that would otherwise clutter the UI if permanently displayed. With tooltips, additional information can be provided contextually without sacrificing the clarity of the interface
  • Provide a brief description of the function of icon-only buttons. This helps users understand the purpose of the button without having to click on it, enhancing the overall user experience.
  • Used to add context to a given screen. For example, tooltips can be used to explain the function of icons or other UI elements that may not be immediately clear to users (offer hints or additional guidance to users).

When Not to Use:

  • Tooltips are used to provide additional explanations for specific content that would otherwise clutter the UI if permanently displayed. With tooltips, additional information can be provided contextually without sacrificing the clarity of the interface'
  • Provide a brief description of the function of icon-only buttons. This helps users understand the purpose of the button without having to click on it, enhancing the overall user experience.
  • Used to add context to a given screen. For example, tooltips can be used to explain the function of icons or other UI elements that may not be immediately clear to users (offer hints or additional guidance to users).
Notes

Don't use tooltips:
  • For critical information that the user must read.
  • For lengthy text or detailed instructions.


Accessibility

Behavior

Tooltips become redundant when UI elements already incorporate clear and descriptive label text, as the labels alone suffice to convey the function or purpose of the elements.

Do's
Don't

The tooltip should appear when the trigger element receives focus and should be dismissible when focus is moved away.

Do's
Don't


Content

Large Tooltip Type

A large tooltip type is used when additional space is required to display more detailed information. This type of tooltip can accommodate longer text or multiple pieces of information, but should still remain concise and avoid overwhelming the user.

Default
With Button
With Button Link
Centered
Writing Tips
  • Be Concise: Keep the tooltip content brief and to the point.
  • Be Clear: Use simple and clear language to ensure understanding.
  • Avoid Redundancy: Provide information that is not already obvious from the UI.
Do's
Don't
Web
Oops Sorry! This Page Is Under Maintenance
We are improving this page, and will be back soon! You can explore other page.
Mobile
Resources
  • You can use these components by accessing the provided resource files.
  • Preview animations are examples and may not suit Mobile Widgets. Press 'View Code' to access the Widgetbook Playground and see the Flutter widget displaying all created components and interactive.

Usage

Import this line to your file:

import 'package:buma_design_system/buma_design_system.dart';

Attributes of all variants

If there is a question mark ? in the Data Type, it means that the properties are optional, this is namedConstructor from UITooltip

UITooltip

A custom tooltip with different variants. The purpose of a tooltip is to provide additional context, explanation, or description about the element or component to the user, this widget has 3 variant size : small, medium and large

PropertiesData TypeDescription
messageString?Displays text message to tooltip
childWidget?Displays child to trigger tooltip
colorUITooltipColorDisplays different of tooltip color
UITooltipNavigation.showNavigation

Show navigation tooltip (coach mark) to guide users through the application. This tooltip variant is useful for highlighting specific elements or features within the app, providing step-by-step instructions or additional information to enhance user experience and onboarding.

PropertiesData TypeDescription
contextBuildContextA handle to the location of a widget in the widget tree
positionUITooltipNavPosition?Handle position arrow and content of tooltip navigation
colorUITooltipNavColor?The color of tooltip navigation
targetsList<UITargetFocus>A class that handles the target focus
opacityShadowdouble?Displays opacity shadow for tooltip
buttonTypeUITooltipNavButtonType?The type of button in tooltip navigation
UITragetFocus

This class targets focus on the coach mark tooltip and provides a flow for users to navigate through the coach mark steps (next or prev).

PropertiesData TypeDescription
identifyStringThe identify of the target focus
keyTargetList<GlobalKey>The key of multiple target to show higlight widget
enableTargetTabboolThe enable target tab
tooltipKeyGlobalKey?The key to identify focus tooltip
titleString?The title of the tooltip content
descriptionString?The decription of the tooltip content
hasClosebool?Enable user to close the tooltip and end the coach mark tutorial
buttonNextUITooltipButtonHandler?Displays next with custom callback and label
buttonPrevUITooltipButtonHandler?Displays previous with custom callback and label
stepString?The step of the target focus
positionUITooltipNavPosition?The position of the target focus

Previews & Code

You can call the components with Class.namedConstructor() with different variants.

Tooltip Small
Tooltip Medium
Tooltip Large
Tooltip Navigation
arrow_back
Previous Toast
Next Wizzard
arrow_forward