feat(ui-shell): HeaderAction supports tooltip (#2111)

Closes #2110
This commit is contained in:
Eric Liu 2025-03-09 13:47:34 -07:00 committed by GitHub
commit 24b9cbc9c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 82 additions and 12 deletions

View file

@ -25,12 +25,26 @@ type $Props = {
closeIcon?: any;
/**
* Specify the text.
* Specify the text displayed next to the icon.
* Alternatively, use the named slot "text" (e.g., `<div slot="text">...</div>`)
* @default undefined
*/
text?: string;
/**
* Specify an icon tooltip. The tooltip will not be displayed
* if either the `text` prop or a named slot="text" is used
* @default undefined
*/
iconDescription?: string;
/**
* Set the alignment of the tooltip relative to the icon.
* Only applies when `iconDescription` is provided
* @default "center"
*/
tooltipAlignment?: "start" | "center" | "end";
/**
* Obtain a reference to the button HTML element
* @default null