@fluid-topics/ft-radio
v1.1.99
Published
A radio component
Downloads
2,944
Readme
A radio button component.
Install
npm install @fluid-topics/ft-radio
yarn add @fluid-topics/ft-radio
Usage
import { html } from "lit"
import "@fluid-topics/ft-radio"
function render() {
return html`
<ft-radio-group name=${ args.name }
@change=${ (e: CustomEvent) => console.log("ft-radio-group change to :", e.detail) } >
<ft-radio value="value 1" checked>
Value 1
</ft-radio>
<ft-radio value="value 2">
Value 2
</ft-radio>
<ft-radio value="value 3">
Value 3
</ft-radio>
</ft-radio-group>
`
}