Lynx

Skeleton

A UI element that displays the outline of elements to appear while content is loading, making the loading time feel shorter.

Engine ≥ 3.6
Available since@seed-design/lynx-react@0.8.0, @seed-design/lynx-css@0.12.0
Loading Lynx example…

Installation

npm install @seed-design/lynx-react @seed-design/lynx-css

Lynx Skeleton is provided directly from the @seed-design/lynx-react package without a separate ui:skeleton snippet.

Usage

import { Skeleton } from "@seed-design/lynx-react";
<Skeleton />

Props

Prop

Type

style?CSSProperties | undefined
className?string | undefined
width?"full" | (string & {}) | Dimension | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | "spacingY.betweenText" | undefined
height?"full" | (string & {}) | Dimension | "spacingX.betweenChips" | "spacingX.globalGutter" | "spacingY.componentDefault" | "spacingY.navToTitle" | "spacingY.screenBottom" | "spacingY.betweenText" | undefined

Examples

Radius

Loading Lynx example…

Tone

Loading Lynx example…

Differences from Web Version

  • The web renders shimmer with HTML <div> and CSS pseudo-element, while Lynx renders a native <view> root and shimmer child.
  • Lynx treats Skeleton as a decorative element and hides the root and shimmer child from the accessibility tree with accessibility-elements-hidden.
  • The Lynx public API provides radius, tone, width, height, className, style, and root <view> ref, but does not provide children, events, or state APIs.

Table of contents