المكونات
تلميح
تلميح قصير يظهر عند التمرير أو التركيز.
الاستخدام
أساسي
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>تأخيرا الفتح والإغلاق
مشغّلان بتوقيتين مختلفين: يظهر أحدهما عند أول إطار من التحويم، ويبقى الآخر ظاهرًا بعد مغادرة المؤشر.
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>تلميح الأيقونة
مشغّل أيقونة شبح بجوار تسمية حقل، وهو الموضع المعتاد لمعظم تلميحات الأدوات في المنتجات.
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>البنية
يتكوّن تلميح من الكتل أدناه. كل كتلة منها مستقلة ولا تُعرض إلا داخل العنصر الأب.
bsui/tooltipbsui/tooltip-popupbsui/tooltip-trigger
السمات
| السمة | النوع | افتراضي |
|---|---|---|
openDelay | number | 600 |
closeDelay | number | 0 |
bsui/tooltip-popup
| السمة | النوع | افتراضي |
|---|---|---|
content | richtext | — |
bsui/tooltip-trigger
| السمة | النوع | افتراضي |
|---|---|---|
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 |