Radio Group
Three options sharing one dot. The dot stretches as it travels to the option you pick.
- 1.6 KB .bexode
- 6 live inputs
- Responsive fit Layout
Use it
The code follows your customizations. Install with npm i exodeui.
import { ExodeUICanvas } from 'exodeui';
// radio.bexode goes in /public (download it below)
export function Radio() {
return (
<ExodeUICanvas
src="/radio.bexode"
fit="Contain"
autoPlay
interactive
onTrigger={(name) => {
// fires: 'selected'
}}
style={{ width: '100%', height: 560 }}
/>
);
}Inputs
| Input | Type | Default | Range |
|---|---|---|---|
accent | Text | #FF5A1F | hex colour |
ink | Text | #17171C | hex colour |
option1 | Text | Monthly | — |
option2 | Text | Yearly | — |
option3 | Text | Lifetime | — |
selected | Number | 0 | 0 – 2 |
Events (via onTrigger): selected