function createSpinner
createSpinner(props?: SpinnerProps): string

Create spinner HTML string using Phosphor Icons

Examples

Example 1

const html = createSpinner({ size: 'lg', variant: 'primary', themeColor: 'violet' });

Parameters

optional
props: SpinnerProps

Spinner configuration

Return Type

string

HTML string for the spinner

Usage

import { createSpinner } from ".";