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 v1.4.2
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.* custom - custom color background with custom color text/icon. | '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 |
CSS Properties
| Name | Description |
|---|---|
| --button-color | The background color of the button when flavor="custom". |
| --button-text-color | The text color of the button when flavor="custom". |
| --icon-button-icon-color | The color of the icon when flavor="custom". |
| --icon-button-icon-color-disabled | The color of the icon when the button is disabled and flavor="custom". |
| --button-disabled-color | The background color of the disabled button when flavor="custom". |
| --button-disabled-text-color | The text color of the disabled button when flavor="custom". |
| --button-hover-color | The background color on hover when flavor="custom" (overrides the default hover filter). |
| --button-active-color | The background color on active/press when flavor="custom" (overrides the default press filter). |
Flutter component not available yet