2.15.2
Floating label that briefly describes an element.
Tooltip component. Part of the Bolt “Components” CSS framework that powers the Bolt Design System.
npm install @bolt/components-tooltip
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case
.
Prop Name | Description | Type | Default Value | Option(s) |
---|---|---|---|---|
|
A Drupal attributes object. Applies extra HTML attributes to the outer <bolt-menu> tag. |
object
|
— |
|
|
Renders the trigger of the tooltip. |
any
|
— |
|
|
Renders the content of the tooltip. Plain text is preferred because this is supposed to be a simple label. For passing more complex content and actions, please use Popover instead. |
any
|
— |
|
|
Sets the preferred placement of the tooltip. The actual placement of the tooltip will be automatically adjusted based on the space available on screen. |
string
|
bottom
|
|
|
Unique ID for the tooltip, randomly generated if not provided. |
string
|
— |
|
|
This prop is deprecated. Please use placement instead. |
any
|
— |
|
|
This prop is deprecated. Please stop using it. |
any
|
— |
|
|
This prop is deprecated. Please stop using it. |
any
|
— |
|