Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
    • AlertNext
    • BadgeDot
    • EmptyPlaceholder
    • Loader
    • Toast
  • Data display
  • Typography
  • Accessibility
  • Contrib
  • Deprecated
  • Feedback & status
  • Loader

Loader

Says something is loading. Centres itself in its parent, and `size` takes one value per breakpoint.

Health
Component health
Source
View on Github
Design
View Figma
Playground
No Example
Accessibility

not-compliant

Platform
Universal
Accessibility issues
The component misses the role progressbar and valuemin and valuemax attributes.
  • Overview
  • Props
  • Figma

Usage​

warning

For backward compatibility reasons, loaders center themselves vertically and horizontally in their parent.

Size and color

size also accepts one size per breakpoint, e.g. size={{ $xs: "md", $lg: "sm" }}. Widths that no key matches use lg.

Playground​

Loading...
tip
This component is universal, its usage is the same in murray and murray/mobile.

Loader props

NameTypeDefault ValueDescriptionUsage count
colorLoaderColorundefineddark
size
7 possibilitiesundefined"xs""sm""md""lg""xl"Partial<Record<"$xs" | "$ltVs" | "$vs" | "$ltSm" | "$sm" | "$ltMd" | "$md" | "$ltLg" | "$lg" | "$ltXl" | "$xl" | "$ltXxl" | "$xxl", "xs" | "sm" | "md" | "lg" | "xl">>
lgOne size, or one size per breakpoint, e.g. `{ $xs: "md", $lg: "sm" }`. Widths that no key matches use `lg`.
sxPositionPropsundefined
testIDstringundefined

Style API​

Use sx for one-off adjustments. It accepts these style keys:

alignSelfanimationaspectRatiobottomcursordisplayendflexflexBasisflexGrowflexShrinkheightinsetinsetInlineinsetInlineEndinsetInlineStartleftmarginmarginBottommarginHorizontalmarginInlinemarginInlineEndmarginInlineStartmarginLeftmarginRightmarginTopmarginVerticalmatrixmaxHeightmaxWidthminHeightminWidthopacityperspectivepositionrightrotaterotateXrotateYrotateZscalescaleXscaleYskewXskewYstarttoptransformtransformOriginwidthxyzIndex

Each can be overridden per breakpoint with:

$lg$ltLg$ltMd$ltSm$ltVs$ltXl$ltXxl$md$sm$vs$xl$xs$xxl
Edit this page
Previous
EmptyPlaceholder
Next
Toast
  • Usage
  • Playground