Bottom Sheet
Bottom sheets are surfaces containing supplementary content that are anchored to the bottom of the screen.
Figma Link
https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=21541-1709
- Web Components
- Flutter
Demo
zeta-web v0.11.0
Web Components
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-bottom-sheet--docs
Slots
Name | Description | Type |
---|---|---|
default | Content to be displayed in the bottom sheet. Either zeta-list-item or zeta-grid-menu-item . | text |
Attributes
Name | Description | Type | Default |
---|---|---|---|
headerAlignment | Sheet Header alignment. | "start" | "center" | "start" |
headerText | Sheet Header text content. | string | "Title" |
isExpanded | If the bottom sheet is collapsed or not | boolean | true |
Demo
Widgetbook
https://design.zebra.com/flutter/widgetbook/index.html#/?path=components/bottom-sheet
Inheritance
Object
> DiagnosticableTree
> Widget
> StatelessWidget
> ZetaStatelessWidget
Constructors
Constructor for ZetaBottomSheet.
ZetaBottomSheet.new({Key? key, bool? rounded, String? title, Widget? body, bool centerTitle = true})
Properties
Name | Description | Type | Features |
---|---|---|---|
body | The content of ZetaBottomSheet. | Widget? | final |
centerTitle | Whether title should be center or left aligned. | 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 |
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 |
title | The title of ZetaBottomSheet. | String? | final |