# Bullets

# 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

  • total

    • Number of bullets in total (active + inactive)
    • type: number
    • required: true
  • current

    • Index of the currently active bullet (0-indexed)
    • type: number
    • defaultValue: 0

# Slots

  • inactive

    • custom icon for inactive bullet
    • bindings: class, index, go
  • active

    • custom icon for active bullet

# Events

  • click

# CSS modifiers

  • .sf-bullet--active

# SCSS variables

$bullet-border-radius: 50% !default;
$bullet-size: 8px !default;
$bullet-margin: 6px !default;
$bullet-color: $c-gray-primary !default;
$bullet-size--active: 10px !default;
$bullet-margin--active: 5px !default;
$bullet-color--active: $c-green-secondary !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/SfBullets/SfBullets.html"></template>
<script src="@storefront-ui/vue/src/components/atoms/SfBullets/SfBullets.js"></script>
<style lang="scss">
@import "~@storefront-ui/shared/styles/components/SfBullets.scss";

You can read about using component partials here

# Play with this component

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