Demos
For examples and details on the usage of this component, visit the component demo page:
Tooltip
Properties
Parameter | Type | Description | Default |
---|---|---|---|
ChildContent | RenderFragment |
Gets or sets the content around which the tooltip is rendered. | - |
Content | object |
Gets or sets the content to display within the tooltip. | - |
Color | ThemeColor |
Gets or sets a color of the tooltip. | Default |
Size | Size |
Gets or sets a size of the tooltip content text. | Medium |
Radius | Radius |
Gets or sets a border radius of the tooltip. | Medium |
Shadow | Shadow |
Gets or sets a shadow of the tooltip. | Small |
Placement | TooltipPlacement |
Gets or sets a placement of the tooltip relative to a reference. | Top |
Offset | int |
Gets or sets the offset distance between the tooltip and the reference, in pixels. | 8 |
ShowArrow | bool |
Gets or sets a value indicating whether the tooltip should display an arrow pointing to the reference. | false |
Open | bool |
Gets or sets a value indicating whether the tooltip is currently open. | false |
OpenChanged | EventCallback<bool> |
Gets or sets a callback that is invoked when the open state of the tooltip changes. | - |
Classes | TooltipSlots |
Gets or sets the CSS class names for the tooltip slots. | - |
As | string |
Gets or sets an HTML tag of the component. | - |
Class | string |
Gets or sets CSS class names that will be applied to the component. | - |
Style | string |
Gets or sets styles that will be applied to the component. | - |
AdditionalAttributes | IReadOnlyDictionary<string, object> |
Gets or sets a collection of additional attributes that will be applied to the component. | - |
ElementReference | ElementReference? |
Gets or sets the associated . May be if accessed before the component is rendered. | - |