Tooltip
Tooltips display informative text when users hover over, focus on, or tap an element.
Figma Link
https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=21816-222
- Web Components
- Flutter
Demo
zeta-web v0.11.0
Web Components
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-tooltip--docs
Attributes
Name | Description | Type | Default |
---|---|---|---|
point | Position of the tooltip. | "left" | "right" | "top" | "bottom" | "bottom" |
label | Text content of the tooltip. | string | undefined | undefined |
Inherited Attributes
Name | Description | Type | Default | Inherited From |
---|---|---|---|---|
rounded | Whether the component is rounded or sharp.When true, rounded will set the border radius of the first child, and any children with class 'contourable-target' to --radius-minimal .Otherwise, this value will be --radius-none . | boolean | undefined | true | Contourable |
Demo
Widgetbook
https://design.zebra.com/flutter/widgetbook/index.html#/?path=components/tooltip/zetatooltip/tooltip
Inheritance
Object
> DiagnosticableTree
> Widget
> StatelessWidget
> ZetaStatelessWidget
Constructors
Constructor for ZetaTooltip.
ZetaTooltip.new({Key? key, bool? rounded, required Widget child, EdgeInsets? padding, Color? color, TextStyle? textStyle, ZetaTooltipArrowDirection arrowDirection = ZetaTooltipArrowDirection.down, double? maxWidth})
Properties
Name | Description | Type | Features |
---|---|---|---|
arrowDirection | The direction of the tooltip's arrow. | ZetaTooltipArrowDirection | final |
child | The content of the tooltip. | Widget | final |
color | The color of the tooltip. | Color? | final |
hashCode | The hash code for this object. | int | no setter inherited |
key | Controls how one widget replaces another widget in the tree. | Key? | final inherited |
maxWidth | The maximum width of the tooltip. | double? | final |
padding | The padding inside the ZetaTooltip. | EdgeInsets? | final |
rounded | Sets rounded or sharp border of the containing box and the icon style. | bool? | final inherited |
runtimeType | A representation of the runtime type of the object. | Type | no setter inherited |
textStyle | The text style of the tooltip. | TextStyle? | final |