UISpinner

Spinner component for when you want to present loading

Since: 6.5.0 (6.2.0)

Name

Type

Default

Description

size

string

"medium"

Size of spinner. Variants: small|medium|large|huge

color

string

"rgba(0,0,0,0.3)"

Color of the spinner. Hex, rgb, rgba or CSS-variables

Example

import {UISpiner} from 'writer'

render($$) {
    const el = $$('div')

    return el.append(
        $$(UISpinner, {
            size: 'medium',
            color: 'rgba(0,0,0,0.3) 
        })
    )
}

Last updated