Issue
How can I create circle ion-button with ionic icon in it (based on angular)?
For example:
Starting point of code:
<ion-button (click)="buttonClicked()">
<ion-icon name="send-sharp"></ion-icon>
</ion-button>
I tried these solutions but it didn't help.
Solution
This how it can be done in the ionic way:
ion-button[shape=circle] {
--border-radius: 50%;
width: 56px;
height: 56px;
}
<ion-button shape="circle" (click)="buttonClicked()">
<ion-icon slot="icon-only" name="send-sharp"></ion-icon>
</ion-button>
Answered By - Rami Assi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.