Loader
Says something is loading. Centres itself in its parent, and `size` takes one value per breakpoint.
Health
Source
Design
Playground
No Example
Accessibility
not-compliant
Platform
Universal
Accessibility issues
The component misses the role progressbar and valuemin and valuemax attributes.
- Overview
- Props
- Figma
tip
This component is universal, its usage is the same in
murray and murray/mobile.Loader props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| color | LoaderColorundefined | dark | ||
| 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">> | lg | One size, or one size per breakpoint, e.g. `{ $xs: "md", $lg: "sm" }`. Widths that no key matches use `lg`. | |
| sx | PositionPropsundefined | |||
| testID | stringundefined |
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