Files
ionic-framework/core/src/components/chip-button/readme.md
2018-04-10 00:14:10 +02:00

2.1 KiB

ion-chip-button

A chip-button is an inset button that is placed inside of a chip.


<ion-chip>
  <ion-label>Button Chip</ion-label>
  <ion-chip-button fill="clear" color="light">
    <ion-icon name="close-circle"></ion-icon>
  </ion-chip-button>
</ion-chip>

<ion-chip>
  <ion-icon name="pin" color="primary"></ion-icon>
  <ion-label>Icon Chip</ion-label>
  <ion-chip-button>
    <ion-icon name="close"></ion-icon>
  </ion-chip-button>
</ion-chip>

<ion-chip>
  <ion-avatar>
    <img src="https://gravatar.com/avatar/dba6bae8c566f9d4041fb9cd9ada7741?d=identicon&f=y">
  </ion-avatar>
  <ion-label>Avatar Chip</ion-label>
  <ion-chip-button fill="clear" color="dark">
    <ion-icon name="close-circle"></ion-icon>
  </ion-chip-button>
</ion-chip>

Properties

color

string

The color to use. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark".

disabled

boolean

If true, the user cannot interact with the chip button. Defaults to false.

fill

string

Set to "clear" for a transparent button style.

href

string

Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.

mode

string

The mode determines which platform styles to use. Possible values are: "ios" or "md".

Attributes

color

string

The color to use. Default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark".

disabled

boolean

If true, the user cannot interact with the chip button. Defaults to false.

fill

string

Set to "clear" for a transparent button style.

href

string

Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.

mode

string

The mode determines which platform styles to use. Possible values are: "ios" or "md".


Built with StencilJS