---
title: "Animated Lightbulb Icon"
description: "A light bulb for tips, ideas, and light switches. Its filament flickers on hover, and it lights up with four rays when it turns on."
url: https://gelatinui.com/components/animated-lightbulb-icon
markdown_url: https://gelatinui.com/components/animated-lightbulb-icon.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/animated-lightbulb-icon"
version: "2026-11-24"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Lightbulb Icon

> A light bulb for tips, ideas, and light switches. Its filament flickers on hover, and it lights up with four rays when it turns on.

Page: https://gelatinui.com/components/animated-lightbulb-icon

## When to use it

Best for: A Tips or light toggle: the bulb lights up with rays when it turns on.

- Use it in a toggle that shows tips or hints, or in a light switch of a smart home app.
- Set `on` from the state. A change to `true` lights the bulb and draws the rays.
- Set `--animated-lightbulb-icon-color` to change the lit color.

## When not to use it

- For an AI feature or a magic action, use the [Animated Sparkles Icon](https://gelatinui.com/components/animated-sparkles-icon.md).
- For a light and dark theme switch, use the [Animated Sun Moon Icon](https://gelatinui.com/components/animated-sun-moon-icon.md).

## Notes for agents

- `variant` (`stroke`, `solid`, `duotone`, `twotone`, `bulk`) and `corners` (`round`, `sharp`) pick the style. Use one style for every icon of a product.
- `on` is the lit state. The default is `false`.
- `trigger` is `hover` by default: the hover or the keyboard focus of the control plays one filament flicker.
- The lit color is `--animated-lightbulb-icon-color` (the text color by default). The outline and the base are the text color.
- The icon is `aria-hidden`. Put `aria-pressed` and the name on the button.

## Anatomy

```text
AnimatedLightbulbIcon
```

## API reference

### AnimatedLightbulbIcon

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"bulk" \| "duotone" \| "solid" \| "stroke" \| "twotone"` |  | `stroke` (default): 1.5 strokes. `solid`: the body filled, inner details cut through. `duotone`: a 40% fill under the stroke. `twotone`: the details at 40%. `bulk`: the body filled at 40% with no outline, the details at full color. |
| `corners` | `"round" \| "sharp"` |  | `round` (default): round caps and joins, soft corners. `sharp`: square caps, miter joins. |
| `trigger` | `"hover" \| "none"` |  | `hover` (default) plays once per hover or keyboard focus of the control around the icon. |
| `play` | `number` |  | Plays once each time this number changes (a new notice, a saved form). |
| `on` | `boolean` | false | On: the bulb fills in the lit color, and on each change to `true` four rays draw out. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedLightbulbIcon | `animated-lightbulb-icon` |  | `--animated-lightbulb-icon-color` |  |

## Usage

Set `on` from the state, and put `aria-pressed` on the button.

The sample also uses `button`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui-pro/animated-lightbulb-icon @gelatin-ui/button
```

```tsx title="tips-button.tsx"
import { useState } from "react";

import { AnimatedLightbulbIcon } from "@/components/pro/icons/animated-lightbulb-icon";
import { Button } from "@/components/ui/button";

export function TipsButton() {
  const [tips, setTips] = useState(false);
  return (
    <Button
      variant="ghost"
      size="icon"
      aria-label="Writing tips"
      aria-pressed={tips}
      onClick={() => {
        setTips((current) => {
          return !current;
        });
      }}
    >
      <AnimatedLightbulbIcon on={tips} />
    </Button>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/animated-lightbulb-icon
```

It adds 14 registry items: 13 files, 2482 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Button](https://gelatinui.com/components/button.md)
- [Toggle](https://gelatinui.com/components/toggle.md)
- [Animated Sun Moon Icon](https://gelatinui.com/components/animated-sun-moon-icon.md)

## Accessibility

The icon is hidden from assistive tools. Put the name and `aria-pressed` on the button.

## Motion

| Part | Motion |
| --- | --- |
| On | iconDraw · the bulb fills, and 4 rays draw out one by one |
| Hover | iconHover · the filament flickers once |
