Attributions

Spinner

The spinner is a CSS class designed to provide a visual indication of loading. It's flexible enough to be adapted for various sizes and themes, ensuring it fits seamlessly into different design contexts without being tied to a specific component structure.

Usage

Here is a basic example of how to use the spinner class:

<div class="monster-spinner"></div>

Size

To adjust the spinner to your specific needs, you must explicitly set its width and height:

<div class="monster-spinner" style="width: 100px; height: 100px;"></div>

Themes

The spinner can be customized with different themes to match your styling requirements. Below are examples of how to apply theme-specific classes to the spinner:

The themes are not only aesthetic but functional, designed to ensure visibility across different backgrounds and contexts:

Badges

Badges are used to highlight an item's status for quick recognition. They can be used to indicate the status of an item or to draw attention to an item.

monster-badge-primary
monster-badge-primary-pill
monster-badge-secondary
monster-badge-secondary-pill
monster-badge-tertiary
monster-badge-tertiary-pill
monster-badge-destructive
monster-badge-destructive-pill
monster-badge-success
monster-badge-success-pill
monster-badge-warning
monster-badge-warning-pill
monster-badge-error
monster-badge-error-pill
                            
                        

Icons

IconClassDescription
monster-icon-primary-1-infoInfo icon
monster-icon-primary-1-positivPositiv icon
monster-icon-primary-1-negativNegativ icon
monster-icon-primary-1-warningWarning icon
monster-icon-primary-1-neutralNeutral icon
monster-icon-primary-1-questionQuestion icon
monster-icon-primary-1-plusPlus icon
monster-icon-primary-1-dashDash icon
monster-icon-primary-1-gearGear icon
monster-icon-primary-1-homeHome icon
monster-icon-primary-1-counterclockwiseCounterclockwise icon
monster-icon-secondary-1-infoInfo icon
monster-icon-secondary-1-positivPositiv icon
monster-icon-secondary-1-negativNegativ icon
monster-icon-secondary-1-warningWarning icon
monster-icon-secondary-1-neutralNeutral icon
monster-icon-secondary-1-questionQuestion icon
monster-icon-secondary-1-plusPlus icon
monster-icon-secondary-1-dashDash icon
monster-icon-secondary-1-gearGear icon
monster-icon-secondary-1-homeHome icon
monster-icon-secondary-1-counterclockwiseCounterclockwise icon
monster-icon-tertiary-1-infoInfo icon
monster-icon-tertiary-1-positivPositiv icon
monster-icon-tertiary-1-negativNegativ icon
monster-icon-tertiary-1-warningWarning icon
monster-icon-tertiary-1-neutralNeutral icon
monster-icon-tertiary-1-questionQuestion icon
monster-icon-tertiary-1-plusPlus icon
monster-icon-tertiary-1-dashDash icon
monster-icon-tertiary-1-gearGear icon
monster-icon-tertiary-1-homeHome icon
monster-icon-tertiary-1-counterclockwiseCounterclockwise icon
monster-icon-success-1Success icon
monster-icon-success-2Success icon
monster-icon-success-3Success icon
monster-icon-success-4Success icon
monster-icon-warning-1Warning icon
monster-icon-warning-2Warning icon
monster-icon-warning-3Warning icon
monster-icon-warning-4Warning icon
monster-icon-error-1Error icon
monster-icon-error-2Error icon
monster-icon-error-3Error icon
monster-icon-error-4Error icon

Usage

Use the following classes to display the icons:

<span class="monster-icon-primary-1-info"></span>

This is an -Icon.

Create own icon

Use the following mixin to create your own icon:


                        @import "@schukai/monster/source/components/style/mixin/icon.pcss";

                        @mixin icon my-icon {
                        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' " +
                        "width='16' height='16' fill='currentColor' class='bi bi-dash-circle' " +
                        "viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0" +
                        "1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M4 8a.5.5 0 0 1 " +
                        ".5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3E%3C/svg%3E");
                        }

The current width of the area is too small to display the content correctly.