Back to Component Browser

LoadingArea

Quartz

lib/quartz/components/LoadingArea/index.ts

Preview

Import

import { LoadingArea } from '@/lib/quartz';

Props (4)

NameTypeRequiredDefaultDescription
childrenReactNoderequiredThe content that is available after loading
loadingbooleanrequiredWhether the loading spinner should show and the content inside should not be rendered
heightBoxHeightValueoptional20Set this to your best guess of the height of the content loading in (in px). This will help reduce layout shift as much as possible.
aria-liveBoxPropsoptionalOption to choose announcing of the content loading in. Not recommended for large blocks of content as it will read aloud too much. Off by default.

Usage

Not used in any projects yet.