Live preview

Interactive example

Error feedback

Please try again.

Usage

Import the component, then make it your own.

ComponentErrorX

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>

API reference

Props accepted by the component.

3 entries in properties

PropertyTypeDefaultDescription
is_showboolean trueDetermines whether the ErrorX icon is displayed.
colorCSS color var(--error-t)The color of the X icon.
swnumber 30Stroke width of the X icon lines.