Componentes
Información sobre herramientas
Una breve indicación que aparece al pasar el cursor o al enfocar.
Uso
Básica
Shortcut: Cmd K
HTML
<bs:bsui-tooltip>
<bs:bsui-tooltip-trigger trigger_label="Hover me" trigger_variant="outline" />
<bs:bsui-tooltip-popup content="Shortcut: Cmd K" />
</bs:bsui-tooltip>Retardos de apertura y cierre
Dos activadores con tiempos distintos: uno aparece en el primer instante al pasar el cursor y el otro permanece tras retirar el puntero.
Shows the hint on the first hover frame
Stays up as the pointer moves away
HTML
<bs:bsui-stack direction="row" gap="3" justify="center">
<bs:bsui-tooltip openDelay="0">
<bs:bsui-tooltip-trigger trigger_label="Instant" trigger_variant="secondary" />
<bs:bsui-tooltip-popup content="Shows the hint on the first hover frame" />
</bs:bsui-tooltip>
<bs:bsui-tooltip openDelay="600" closeDelay="400">
<bs:bsui-tooltip-trigger trigger_label="Patient" trigger_variant="secondary" />
<bs:bsui-tooltip-popup content="Stays up as the pointer moves away" />
</bs:bsui-tooltip>
</bs:bsui-stack>Indicación de icono
Un activador de icono fantasma junto a la etiqueta de un campo, donde suelen aparecer las sugerencias de herramientas de producto.
Retention window
Logs older than the window are deleted nightly
HTML
<bs:bsui-stack direction="row" gap="2" align="center" justify="center">
<bs:bsui-text content="Retention window" variant="label" tag="span" />
<bs:bsui-tooltip openDelay="0">
<bs:bsui-tooltip-trigger trigger_label="?" trigger_variant="ghost" trigger_size="icon-sm" />
<bs:bsui-tooltip-popup content="Logs older than the window are deleted nightly" />
</bs:bsui-tooltip>
</bs:bsui-stack>Estructura
Información sobre herramientas se compone de los bloques siguientes. Cada uno es un bloque independiente que solo se representa dentro de su elemento principal.
bsui/tooltipbsui/tooltip-popupbsui/tooltip-trigger
Atributos
| Atributo | Tipo | Predeterminado |
|---|---|---|
openDelay | number | 600 |
closeDelay | number | 0 |
bsui/tooltip-popup
| Atributo | Tipo | Predeterminado |
|---|---|---|
content | richtext | — |
bsui/tooltip-trigger
| Atributo | Tipo | Predeterminado |
|---|---|---|
trigger | text | — |
trigger_block | text | bsui/button |
trigger_label | richtext | — |
trigger_icon | icon | — |
trigger_iconPosition | left | |
trigger_href | text | — |
trigger_variant | default | |
trigger_size | default | |
trigger_disabled | toggle | false |