BRAID
Braid Logo
Resources
Releases
Gallery
Playroom
GitHub
Guides
Design Workflow
Development Workflow
Playroom Prototyping
Contribution
Testing Guide
Foundations
Layout
Tones
Iconography
Examples
Job Summary
Basic Form
Marketing Banner
Components
Accordion
Actions
Alert
Autosuggest
Badge
Bleed
Box
Button
ButtonIcon
ButtonLink
Card
Checkbox
Columns
ContentBlock
Dialog
Disclosure
Divider
Drawer
Dropdown
FieldLabel
FieldMessage
Heading
Hidden
HiddenVisually
Inline
List
Loader
MenuItem
MenuItemCheckbox
MenuItemDivider
MenuRenderer
MonthPicker
Notice
OverflowMenu
Page
PageBlock
Pagination
PasswordField
Radio
Deprecated
RadioGroup
Rating
Secondary
Spread
New
Stack
Stepper
Strong
Tabs
New
Tag
Text
TextDropdown
TextField
TextLink
TextLinkButton
Textarea
Tiles
Toggle
TooltipRenderer
useToast
CSS
atoms
breakpoints
globalHeadingStyle
globalTextStyle
responsiveStyle
vars
Logic
BraidPortal
BraidProvider
BraidTestProvider
Link
ThemeNameConsumer
useBreakpoint
Deprecated
useColor
useResponsiveValue
useSpace
useThemeName
TooltipRenderer
Details
Details
Props
Props
Releases
Releases
Snippets
Snippets
View code
Code
Open in
Playroom
Alternatives
Dialog
— For exposing additional content in a modal with richer formatting.
Disclosure
— For revealing content inline with a light visual treatment.
Accessibility
Follows the
WAI-ARIA Tooltip Pattern.
Tooltips appear on mouse hover, tap and keyboard focus, and are hidden when scrolling and clicking/tapping/focusing on other elements.
Tooltips cannot contain interactive elements like links, buttons or form elements.
Development considerations
The trigger element must support
ref
,
tabIndex
and
aria-describedby
props.
Placement
Tooltips are positioned above the trigger element by default, but you can configure this via the
placement
prop which accepts either
top
or
bottom
.
Whichever direction you choose, the tooltip will be centred against the trigger element.
Top
Bottom
View code
Code
Open in
Playroom
Formatting
To ensure readability, tooltips have a maximum width of 260px, which means that text will wrap onto multiple lines if you provide enough content.
You can also use multiple text elements and layout components to create more custom layouts.
Strong text
The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
View code
Code
Open in
Playroom
BRAID
Braid Logo