npm.io
1.0.24 • Published 5 months ago

@paprika/spinner

Licence
MIT
Version
1.0.24
Deps
6
Size
22 kB
Vulns
0
Weekly
0
Stars
55

@paprika/spinner

Description

Spinner component tells the user that the app is doing something.

Installation

yarn add @paprika/spinner

or with npm:

npm install @paprika/spinner

Props

Spinner
Prop Type required default Description
a11yText string false null Descriptive a11y text for assistive technologies. By default, text from children node will be used.
caption string false null Sets the caption that will display beneath the spinner
isDark bool false false If the background is dark, different color of spinner will be rendered
size [ Spinner.types.size.SMALL, Spinner.types.size.MEDIUM, Spinner.types.size.LARGE] false Spinner.types.size.MEDIUM Sets the size of the spinner
import Spinner from "@paprika/spinner";

<Spinner caption="spinning" />;