# Loader

# Most common usage scenario


This section is not fully documented yet. We are doing our best to make our documentation a good and complete source of knowledge about Storefront UI. If you would like to help us, please don't hesitate to contribute to our docs. You can read more about it here.

# Props

  • loading
    • Shows the loader on top of the existing content
    • type: boolean
    • defaultValue: true

# Slots

  • default

    • Use this slot to insert loaded content
  • loader

    • Use this slot to replace loader

# Events


# CSS modifiers

  • .sf-loader--top

# SCSS variables

$loader__spinner-color: $c-accent-primary !default;
$loader__overlay-color: white !default;

You can override SCSS variable values bound to this component in sfui.scss in the root of your project.

# Partials

If you want to customize this component even more you can use its partials for limitless customization.

<template lang="html" src="@storefront-ui/vue/src/components/atoms/SfLoader/SfLoader.html"></template>
<script src="@storefront-ui/vue/src/components/atoms/SfLoader/SfLoader.js"></script>
<style lang="scss">
@import "~@storefront-ui/shared/styles/components/SfLoader.scss";

You can read about using component partials here

# Play with this component

See all available configurations and play with this component on Storybook.