Tile Button
A large, tappable button with an icon stacked above a label. Ideal for grid layouts, dashboards, or mobile interfaces where quick, visually distinct actions are needed.
Figma Link
- Web Components
- Flutter
Demo
zeta-web v0.12.9
Web Components
A large, tappable button with an icon stacked above a label. Ideal for grid layouts, dashboards, or mobile interfaces where quick, visually distinct actions are needed.
Storybook
https://design.zebra.com/web/storybook/?path=/story/components-buttons--tile-button
Slots
| Name | Description | Type |
|---|---|---|
| default | Content shown on button; typically text. | text |
Attributes
| Name | Description | Type | Default |
|---|---|---|---|
| icon | Main icon of button. Full list of icons can be found at https://design.zebra.com/icons | Zeta Icons. | ZetaIconName | undefined |
Inherited Attributes
| Name | Description | Type | Default | Inherited From |
|---|---|---|---|---|
| flavor | Flavor of component.Values:* primary - blue background.* positive - green background.* negative - red background.* outline - primary outline only.* outline-subtle - grey outline only.* text - primary text only.* inverse - black/white background. Note that this flavor is not supported in all components.* subtle - white background with grey text. Same action colors as 'text' flavor. | 'outline-subtle' | "outline-subtle" | Flavored |
| size | Size of component | 'small' | 'medium' | 'large' | "medium" | BaseButton |
| shape | Whether the component is sharp or rounded.This will change the border radius and icon font.Possible values are:- sharp: No border radius, uses "zeta-icons-sharp"- rounded: Minimal border radius, uses "zeta-icons-round" | 'sharp' | 'rounded' | 'full' | "rounded" | BaseButton |
| disabled | Boolean for if component is disabled.This will apply disabled styles. | boolean | false | BaseButton |
| tabIndex | The tab index of the component, used to determine the order in which elements receive focus when the user navigates through the document by pressing the Tab key. | number | 0 | BaseButton |
| type | The type of the button when used in a form | "submit" | "reset" | "button" | undefined | undefined | BaseButton |
| name | Name for the button, used if the button is in a form. | string | undefined | undefined | BaseButton |
| value | The value of the name property When submitted as part of a form | string | undefined | undefined | BaseButton |
Demo
Widgetbook
Inheritance
Object > DiagnosticableTree > Widget > StatelessWidget > ZetaStatelessWidget
Constructors
Constructs ZetaTileButton
ZetaTileButton.new({Key? key, bool? rounded, required IconData icon, required String label, VoidCallback? onPressed, FocusNode? focusNode, String? semanticLabel})
Properties
| Name | Description | Type | Features |
|---|---|---|---|
| focusNode | An optional focus node to use as the focus node for this widget. | FocusNode? | final |
| hashCode | The hash code for this object. | int | no setter inherited |
| icon | Icon of button. Goes on top of button. | IconData | final |
| key | Controls how one widget replaces another widget in the tree. | Key? | final inherited |
| label | Button label | String | final |
| onPressed | Called when the button is tapped or otherwise activated. | 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 | The semantic label of the button. | String? | final |