@lynx-js/lynx-ui-deferred-component
v3.139.0
Published
Deferred rendering for ReactLynx. `DeferredComponent` mounts a child after the first layout or a configurable frame delay, with optional placeholder content.
Readme
@lynx-js/lynx-ui-deferred-component
Deferred rendering for ReactLynx. DeferredComponent mounts a child after the first layout or a configurable frame delay, with optional placeholder content.
Installation
Install through the main @lynx-js/lynx-ui package:
pnpm add @lynx-js/lynx-uiThe standalone package is also available as @lynx-js/lynx-ui-deferred-component.
Component Structure
import { DeferredComponent } from '@lynx-js/lynx-ui'
<DeferredComponent estimatedStyle={{ width: '100%', minHeight: '120px' }}>
<text>Deferred content</text>
</DeferredComponent>DeferredComponent is a single component with no sub-components.
Documentation
About @lynx-js/lynx-ui
This component is part of @lynx-js/lynx-ui, a headless component library maintained by the Lynx team for ReactLynx.
