preact-material-components
Version:
preact wrapper for "Material Components for the web"
15 lines • 430 B
Plain Text
// name must match accross all elements to logically group them
<div>
<Formfield>
<Radio id="radio-1" name="Basic Options" />
<label for="radio-1">Radio 1</label>
</Formfield>
<Formfield>
<Radio id="radio-2" name="Basic Options" />
<label for="radio-2">Radio 2</label>
</Formfield>
<Formfield>
<Radio id="radio-3" name="Basic Options" />
<label for="radio-3">Radio 3</label>
</Formfield>
</div>