# ErrorX — SvelteKit UI

Package: sveltekit-ui 1.1.94

Page: https://www.sveltekit-ui.com/components/error_x

Category: Feedback

Animated X icon used to indicate errors or issues, with customizable appearance and animation.

Public component import: `ErrorX`

## Usage

```svelte
<script>
  // Import the shared stylesheet once in your application's root layout.
  import "sveltekit-ui/style.css"
  import { ErrorX } from "sveltekit-ui"
</script>

<div style="width: 4rem; height: 4rem;"><ErrorX color="var(--error-t)" /></div>
<p role="alert">The file could not be uploaded. Please try again.</p>
```

## Properties

### `is_show`

- type: boolean
- default: true
- description: Determines whether the ErrorX icon is displayed.

### `color`

- type: CSS color
- default: var(--error-t)
- description: The color of the X icon.

### `sw`

- type: number
- default: 30
- description: Stroke width of the X icon lines.
