Icon Button
Icon buttons are used to trigger actions with an icon.
Figma Link
- Web Components
- Flutter
Demo
zeta-web v1.4.0
Web Components
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-buttons--docs
Slots
| Name | Description | Type |
|---|---|---|
| default | The name of the icon. Full list of icons can be found at Zeta Icons. | ZetaIconName |
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. | 'primary' | 'positive' | 'negative' | 'outline' | 'outline-subtle' | 'text' | 'subtle' | "primary" | Flavored |
| leadingIcon | Leading icon of button. Full list of icons can be found at https://design.zebra.com/icons | Zeta Icons. | ZetaIconName | null | null |
| trailingIcon | Trailing icon of button. Full list of icons can be found at https://design.zebra.com/icons | Zeta Icons. | ZetaIconName | null | null |
| shape | Whether the component is sharp, rounded or fully 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"- full: Full border radius, uses "zeta-icons-round" | 'sharp' | 'rounded' | 'full' | "rounded" | BaseButton |
| size | Size of component | SizeType | "medium" | 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 |
|---|---|
| --icon-button-color | the color of the button. |
| --icon-button-icon-color | the color of the icon. |
| --icon-button-icon-color-disabled | the color of the icon when the button is disabled. |
Flutter component not available yet