Avatar Rail
A rail containing 0 or more Avatars that can be scrolled horizontally.
Figma Link
- Web Components
- Flutter
Demo
zeta-web v0.11.0
Web Components
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-avatar-rail--docs
Slots
Name | Description | Type |
---|---|---|
default | The avatars to be displayed in the rail. | zeta-avatar-rail[] |
Attributes
Name | Description | Type | Default |
---|---|---|---|
show-close | Shows the close icon on all avatars in the rail. This will be overridden by the individual avatar's show-close attribute.When clicked, an avatar-close event will be fired which can be listened to by adding a listener for the avatar-close event on the rail. | boolean | false |
size | The size of the avatars in the rail. This will be overridden by the individual avatar's size attribute. | 'xxxs' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl' | undefined | undefined |
Demo
Widgetbook
Inheritance
Object
> DiagnosticableTree
> Widget
> StatelessWidget
Constructors
const
ZetaAvatarRail.new({Key? key, ZetaAvatarSize? size, required List<ZetaAvatar> avatars, TextStyle? labelTextStyle, int labelMaxLines = 1, void onTap(Key)?, double? gap})
Properties
Name | Description | Type | Features |
---|---|---|---|
avatars | A list of ZetaAvatar objects representing the avatars to be displayed. | List<ZetaAvatar> | final |
gap | The gap between the avatars. | double? | 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 |
labelMaxLines | The maximum number of lines to be displayed in the label of the ZetaAvatars. | int | final |
labelTextStyle | The text style to be applied to the label of the ZetaAvatars. | TextStyle? | final |
onTap | A callback function to be executed when an ZetaAvatar is tapped. | void Function(Key)? | final |
runtimeType | A representation of the runtime type of the object. | Type | no setter inherited |
size | The size of the ZetaAvatars | ZetaAvatarSize? | final |