UISpinner

Spinner component for when you want to present loading

Since: 7.1.0 (6.2.0)

Name
Type
Default
Description

size

string

"medium"

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

color

string

"var(--dw-color-gray-700)"

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