3.3.3 • Published 2 years ago

@forter/radio v3.3.3

Weekly downloads
67
License
Apache-2.0
Repository
github
Last release
2 years ago

fc-radio

An radio control which is mostly used in forms.

npm.io npm.io npm.io npm.io npm.io npm.io

Usage

<script>
  import '@forter/radio';
</script>

<fc-radio value="radio"> Radio </fc-radio>

Examples

<!-- textContent -->
<fc-radio value="bar">
   Bar
</fc-radio>

Properties

PropertyAttributeTypeDefaultDescription
animationanimation"default" \| "playful"Animation type
checkedcheckedbooleanfalseIf the element is checked
disableddisabledbooleanfalseIf the element is disabled
intentintent"primary" \| "secondary" \| "success" \| "danger" \| "warn"The radio's intent. See Intents in README.
namenamestring"radio"The name of all the radio buttons in the same radio group
valuevaluestringThe unique ID of the current radio button

Events

EventDescription
changewhen changing checked value. method: change, example: { "target": { "checked": true } }

Slots

NameDescription
textContent for the radio label

CSS Custom Properties

Property
--fc-radio-checked-color
--fc-radio-font
--fc-radio-hover-color
--fc-radio-line-height
--fc-radio-padding

fc-radio-group

An radio group control which is mostly used in forms.

npm.io npm.io npm.io npm.io npm.io npm.io

Usage

<script>
  import '@forter/radio';
</script>

<fc-radio-group name="foods">
   <fc-radio value="pizza">Pizza</fc-radio>
   <fc-radio checked value="hamburger">Hamburger</fc-radio>
   <fc-radio disabled value="kalles kaviar">Kalles Kaviar</fc-radio>
   <fc-radio value="salad">Salad</fc-radio>
   <fc-radio value="milkshake">Milkshake</fc-radio>
   <fc-radio disabled value="ice cream">Ice Cream</fc-radio>
   <fc-radio value="brownies">Brownies</fc-radio>
</fc-radio-group>

Examples

<!-- playful -->
<fc-radio-group name="foods">
   <fc-radio value="pizza" animation="playful">Pizza</fc-radio>
   <fc-radio checked value="hamburger" animation="playful">Hamburger</fc-radio>
   <fc-radio disabled value="kalles kaviar" animation="playful">Kalles Kaviar</fc-radio>
   <fc-radio value="salad" animation="playful">Salad</fc-radio>
   <fc-radio value="milkshake" animation="playful">Milkshake</fc-radio>
   <fc-radio disabled value="ice cream" animation="playful">Ice Cream</fc-radio>
   <fc-radio value="brownies" animation="playful">Brownies</fc-radio>
</fc-radio-group>

Properties

PropertyAttributeTypeDefaultDescription
checkedcheckedstringIf the element is checked
disableddisabledbooleanfalseIf the element is disabled
namenamestring"radio"The name of all the radio buttons in the same radio group

Events

EventDescription
changeevent whenever any change is happening with the radio buttons
selectevent whenever a specific radio button selected
3.3.3

2 years ago

3.3.2

2 years ago

3.3.1

3 years ago

3.3.0

4 years ago

3.2.21

4 years ago

3.2.20

4 years ago

3.2.19

4 years ago

3.2.18

4 years ago

3.2.17

4 years ago

3.2.16

4 years ago

3.2.15

4 years ago

3.2.14

4 years ago

3.2.13

4 years ago

3.2.12

4 years ago

3.2.11

4 years ago

3.2.10

4 years ago

3.2.9

4 years ago

3.2.8

4 years ago

3.2.6

4 years ago

3.2.7

4 years ago

3.2.5

4 years ago

3.2.4

4 years ago

3.2.3

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago