Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Display

Spinner <pm-spinner>

Loading spinner (announces as a status).

Full screen
Saving

Props

<script type="module"> import '@prismora/css'; import '@prismora/elements/button'; import '@prismora/elements/spinner'; </script> <pm-spinner size="sm" label="Loading"></pm-spinner> <pm-spinner label="Loading results"></pm-spinner> <pm-spinner size="lg" label="Loading the report"></pm-spinner> <pm-button loading>Saving</pm-button>

Sizes

Set with the size attribute; controls keep touch-sized targets on phones.

size="sm"
size="md"
size="lg"

Tones

Set tone on the element, or data-tone on any ancestor to tone a whole area.

tone="accent"
tone="secondary"
tone="neutral"
tone="success"
tone="warning"
tone="danger"
tone="info"

Attributes

AttributeTypeDefaultDescription
labelstringLoadingAccessible name (and visible label where the component shows one).
size'sm' | 'md' | 'lg'—Size: sm, md or lg (md when not set).

Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.