Live preview

Interactive example

Your changes are saved.

Usage

Import the component, then make it your own.

ComponentLoadingSuccessDiv

svelte

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

<LoadingSuccessDiv show_screen="success" message="Your changes were saved." size={5} />

API reference

Props accepted by the component.

8 entries in properties

PropertyTypeDefaultDescription
messagestring nullOptional message displayed below the icon.
show_screenenum loadingDefines the state of the component: loading (shows a loading spinner), success (shows a success check), or error (shows an error icon).
sizenumber 8Size of the icon in rem.
mlnumber 1Margin-left in rem.
mrnumber 1Margin-right in rem.
mtnumber 1Margin-top in rem.
mbnumber 1Margin-bottom in rem.
flexnumber 1Flex-grow value for the container.