# Custom radio button

**URL:** <https://forum.ionicframework.com/t/custom-radio-button/147213>\
**Category:** ionic-v3\
**Created:** [November 10, 2018, 4:28pm UTC](https://forum.ionicframework.com/t/custom-radio-button/147213 "2018-11-10T16:28:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EnzoDLP](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/enzodlp/32/116227_2.png) [@EnzoDLP](https://forum.ionicframework.com/u/EnzoDLP)\
**Post date:** [November 10, 2018, 4:28pm UTC](https://forum.ionicframework.com/t/custom-radio-button/147213/1 "2018-11-10T16:28:17Z")

</div>

Hello,

I am looking to reproduce a model that I realized however, I have no idea how to customize my radio button to make it look like the image below.

I do not know if I have to use something else?  
There is a number from 1 to 10 in the form of a bubble and when we click on a number it selects it to then validate the selection and use this number (we must not be able to select several numbers)

If a person has an idea or something else, it blocks me a lot … thank you very much ![Capture](https://global.discourse-cdn.com/ionicframework/original/3X/e/5/e5b6046f9a8e11d8d01bc3edd5a1fc5254e9ef8b.png)

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [November 10, 2018, 8:22pm UTC](https://forum.ionicframework.com/t/custom-radio-button/147213/2 "2018-11-10T20:22:53Z")

</div>

I would just use ordinary buttons for this. The single selection constraint is trivial to do oneself:

```auto
<ion-button *ngFor="let n of oneToTen"
  shape="round"
  [color]="selection === n ? 'secondary' : 'primary'"
  (click)="selection = n">
  {{n}}
</ion-button>

```

---

<div class="post-metadata">

**Author:** ![EnzoDLP](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/enzodlp/32/116227_2.png) [@EnzoDLP](https://forum.ionicframework.com/u/EnzoDLP)\
**Post date:** [November 11, 2018, 1:05pm UTC](https://forum.ionicframework.com/t/custom-radio-button/147213/3 "2018-11-11T13:05:59Z")

</div>

Thanks for helping me, your code seems to work but I do not know how to set it up (TS level) and also on the page I have an error with ion button  
 ![Capture](https://global.discourse-cdn.com/ionicframework/original/3X/a/6/a691c19c6daa8fca47b70a4fb68f75a8bdc83c2b.png)

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:09pm UTC](https://forum.ionicframework.com/t/custom-radio-button/147213/4 "2021-07-19T21:09:44Z")

</div>

Closed on July 19, 2021, 9:09pm UTC


