Tag
Tags are used to draw attention to a specific area or information. The arrow shape helps direct the users attention to the desired place.
Figma Link
- Web Components
- Flutter
Demo
zeta-web v0.11.0
Web Components
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-badges--docs
Slots
Name | Description | Type |
---|---|---|
default | The text to display in the tag. | text |
Attributes
Name | Description | Type | Default |
---|---|---|---|
label | Text displayed in the tag.Currently, it is best to use this property instead of the slot, as the slot does not provide an aria label. | string | undefined | undefined |
direction | Direction of the tag point. | "right" | "left" | "right" |
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/badges/zetatag/tag
Inheritance
Object
> DiagnosticableTree
> Widget
> StatelessWidget
> ZetaStatelessWidget
Constructors
Constructs a ZetaTag.
ZetaTag.new({Key? key, bool? rounded, ZetaTagDirection direction = ZetaTagDirection.left, required String label, String? semanticLabel})
Constructs left facing ZetaTag.
ZetaTag.left({Key? key, bool? rounded, required String label, String? semanticLabel})
Constructs right facing ZetaTag.
ZetaTag.right({Key? key, bool? rounded, required String label, String? semanticLabel})
Properties
Name | Description | Type | Features |
---|---|---|---|
direction | Determines the direction of the tag | ZetaTagDirection | 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 |
label | Tag label | String | 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 |
semanticLabel | The value passed into wrapping Semantics widget. | String? | final |