Created
April 20, 2021 09:19
-
-
Save DamianMullins/3feab6fbe5d3434170ede47e8f825ef8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template functional> | |
<div> | |
<input | |
:id="props.labelId" | |
type="radio" | |
:checked="props.isSelected" | |
:name="props.groupName" | |
:value="props.value" | |
@change="listeners.radioChanged"> <!-- Change event --> | |
<label | |
:for="props.labelId" | |
@click="listeners.radioClicked"> <!-- Click event --> | |
{{ props.name }} | |
</label> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment