Status Chip
A chip that looks like a label.
Figma Link
- Web Components
- Flutter
Demo
zeta-web v0.11.0
Web Components
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-chips--docs
Attributes
Name | Description | Type | Default |
---|---|---|---|
text | Text displayed in the chip. | string | "" |
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/chips/input-chip
Inheritance
Object
> DiagnosticableTree
> Widget
> StatelessWidget
> ZetaStatelessWidget
Constructors
Creates a ZetaStatusChip.
ZetaStatusChip.new({Key? key, required String label, bool? rounded = true, bool draggable = false, dynamic data, VoidCallback? onDragCompleted, String? semanticLabel})
Properties
Name | Description | Type | Features |
---|---|---|---|
data | Draggable data. | dynamic | final |
draggable | Whether the chip can be dragged. | bool | 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 | The label on the ZetaStatusChip | String | final |
onDragCompleted | Called when the draggable is dropped and accepted by a DragTarget. | VoidCallback? | 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 | A semantic label for the chip. | String? | final |