Ionic-framework: feat: New size property in the ion-chip component

Created on 22 May 2019  路  6Comments  路  Source: ionic-team/ionic-framework

Feature Request

Ionic version:
[x] 4.x

Describe the Feature Request
It would be interesting to have the '_size_' property in the ion-chip component, just like ion-button component.

Related Code

<ion-chip size="large">
  <ion-icon name="pin"></ion-icon>
  <ion-label>Large</ion-label>
</ion-chip>

<ion-chip>
  <ion-icon name="pin"></ion-icon>
  <ion-label>Default</ion-label>
</ion-chip>

<ion-chip size="small">
  <ion-icon name="pin"></ion-icon>
  <ion-label>Small</ion-label>
</ion-chip>
core feature request

Most helpful comment

Thanks for the issue! How would you expect a small/large chip to look? I'm able to customize it using CSS, for example: https://codepen.io/brandyscarney/pen/mdejzwo

I've been going through the Material Design docs and I don't see any places where the size changes. I just want to make sure I understand the use case here. This can currently be done with CSS - adding a size property would actually be more restrictive.

All 6 comments

This would be super helpful.

YESSS

PLEASSSEEE

Can be useful. Came here looking for answers on how to change chip size :)

Yup! Same here. Is it possible to fix the length of chip to 100% width long?

Thanks for the issue! How would you expect a small/large chip to look? I'm able to customize it using CSS, for example: https://codepen.io/brandyscarney/pen/mdejzwo

I've been going through the Material Design docs and I don't see any places where the size changes. I just want to make sure I understand the use case here. This can currently be done with CSS - adding a size property would actually be more restrictive.

Was this page helpful?
0 / 5 - 0 ratings