UNPKG

bulmil

Version:

![bulmil](https://user-images.githubusercontent.com/2362138/65766959-c721a080-e16f-11e9-9fb9-45a5a2ad0391.jpg)

1 lines 759 B
import{r as i,h as o}from"./p-bf96bbaa.js";const e=class{constructor(o){i(this,o),this.inputClass="",this.labelClass="",this.checked=!1,this.disabled=!1}render(){return o("label",{class:{radio:!0,[this.labelClass]:Boolean(this.labelClass)}},o("input",{class:{[this.inputClass]:Boolean(this.inputClass)},type:"radio",name:this.name,disabled:this.disabled,checked:this.checked}),o("slot",null))}};e.style=".radio,.checkbox{cursor:pointer;display:inline-block;line-height:1.25;position:relative}.radio input,.checkbox input{cursor:pointer}.radio:hover,.checkbox:hover{color:#363636}[disabled].radio,[disabled].checkbox,fieldset[disabled] .radio,fieldset[disabled] .checkbox{color:#7a7a7a;cursor:not-allowed}.radio+.radio{margin-left:0.5em}";export{e as bm_radio}