---
title: "Radio button animated icon"
description: "Radio button animated icon (Forms & input). A nucleus appears then the dot bursts to size; toggle empties it."
canonical: https://generativeicons.com/icons/radio-button/
---

# Radio button animated icon

A nucleus appears then the dot bursts to size; toggle empties it.

- Id: `radio-button`
- Category: Forms & input
- Search terms: option button, single choice, single select, choose one, pick one, radio input, selected option, one of many, mutually exclusive
- Two states: unselected to selected, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/radio-button.lottie (dotLottie, 9225 bytes, sha256 058adf840512b31876dfc40715c92b3c0af5218cae83a043c78378ab0e71e39d)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add radio-button
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/radio-button.mjs';

export function RadioButtonIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/radio-button.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/radio-button/ · https://generativeicons.com/api/icons/radio-button
