StippleUI.Spinners.spinnerFunction
spinner(spinner_type::Union{String,Symbol} = "", args...; kwargs...)

A spinner is used to show the user a timely process is currently taking place. It is an important UX feature, which gives the user the feeling the system is continuing to work for longer term activities, like grabbing data from the server or some heavy calculations.


Examples


Model

julia> @reactive mutable struct SpinnerModel <: ReactiveModel
          box::R{String} = "box"
          comment::R{String} = "comment"
          hourglass::R{String} = "hourglass"
       end

View

julia> spinner(color="primary", size="3em")
julia> spinner(:box, color="orange",size="5.5em")
julia> spinner(:comment, color="green",size="3em")
julia> spinner(:hourglass, color="purple", size="4em")

Arguments


  • size::String - Size in CSS units, including unit name or standard size name (xs|sm|md|lg|xl) ex. 16px2remxsmd
  • color::String - Color name for component from the Color Palette ex. primaryteal
  • thickness::Int - Override value to use for stroke-width ex. 5
source