---
title: "Animated Shield Icon"
description: "A shield with a check for security and privacy buttons. On hover the check draws on again, and the shield pulses once."
url: https://gelatinui.com/components/animated-shield-icon
markdown_url: https://gelatinui.com/components/animated-shield-icon.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/animated-shield-icon"
version: "2026-11-24"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Animated Shield Icon

> A shield with a check for security and privacy buttons. On hover the check draws on again, and the shield pulses once.

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

## When to use it

Best for: A security or privacy button: the check draws on again and the shield pulses on hover.

- Use it in the button that opens security, privacy, or two-factor settings.
- Set `trigger="none"` and raise `play` to play it from code, for example when a security check passes.

## When not to use it

- For a locked or open state, use the [Animated Lock Icon](https://gelatinui.com/components/animated-lock-icon.md).
- For a plain done mark, use the [Animated Check Icon](https://gelatinui.com/components/animated-check-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.
- It has no state prop. It plays only on hover, on focus, or when `play` changes.
- `trigger` is `hover` by default: the hover or the keyboard focus of the closest Button, link, or `[data-icon-hover]` element plays it once.
- `play` plays it once each time the number changes.
- The icon is `aria-hidden`. The control around it owns the name.

## Anatomy

```text
AnimatedShieldIcon
```

## API reference

### AnimatedShieldIcon

| 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). |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AnimatedShieldIcon | `animated-shield-icon` |  |  |  |

## Usage

Put it in a Button. The hover or the keyboard focus of the Button plays it once.

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-shield-icon @gelatin-ui/button
```

```tsx title="security-button.tsx"
import { AnimatedShieldIcon } from "@/components/pro/icons/animated-shield-icon";
import { Button } from "@/components/ui/button";

export function SecurityButton() {
  return (
    <Button variant="outline">
      <AnimatedShieldIcon data-icon="inline-start" />
      Review security
    </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-shield-icon
```

It adds 14 registry items: 13 files, 2466 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)
- [Animated Lock Icon](https://gelatinui.com/components/animated-lock-icon.md)
- [Animated Check Icon](https://gelatinui.com/components/animated-check-icon.md)

## Accessibility

The icon is hidden from assistive tools. The control around it owns the name.

## Motion

| Part | Motion |
| --- | --- |
| Hover | iconHover · the check draws on again from its short leg, and the shield pulses once |
